how do i get excell ?

like this, i need a code in my command1 botton which when the time user press it the abc.xls which is the excell file will be promting out ? by not using ole.

how ?

JOHNHOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JuiletteCommented:
'open a file with associated app can be done this way [using API]

'open a file with it's associated application
'this example opens addin.txt with notepad

'put this in a bas module
'
 Public Declare Function ShellEx Lib "shell32.dll" Alias _
 "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
 ByVal lpFile As String, ByVal lpParameters As Any, _
 ByVal lpDirectory As Any, ByVal nShowCmd As Long) As Long
 '
 Sub ShellDef(strFileName)
   x = ShellEx(Form1.hwnd, "open", strFileName, "", "", 1)
 End Sub

'  >>> code for event on form <<<
'
 Dim strYourFileVariable$
  strYourFileVariable = "c:\your folder\abc.xls"
  ShellDef strYourFileVariable
'=====================================
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JOHNHOAuthor Commented:
ok then, lets say my abc.xls is protected by password so can i connect it with data control ? i alreedy try it and fail , may be u has a solution for this.

thanks.
0
JuiletteCommented:
that's a different question and I don't have an answr to that one.
Wayne
0
JOHNHOAuthor Commented:
ok.

thanks.
0
JOHNHOAuthor Commented:
ok.

thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.