code to open an "xyz"exls file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

dearfriends
i would ile to the code for command button on a form which can open
pre_mentioned xls file plese
 
Dim MyFile As String
MyFile = "C:\SomeFolder\SomeFile.xls" 'Your file name, incl. path
FollowHyperlink MyFile

HTH,
Nikos
 
dearfriends
i would ile to the code for command button on a form which can open
pre_mentioned xls file plese

Application.FollowHyperlink "PathToFile\xyz.xls"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top