code to open an "xyz"exls file

B

balu

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

Nikos Yannacopoulos

Dim MyFile As String
MyFile = "C:\SomeFolder\SomeFile.xls" 'Your file name, incl. path
FollowHyperlink MyFile

HTH,
Nikos
 
F

fredg

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"
 
Top