Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to write a macro which on execution opens a file (Word document
/ PDF - in their respective applications) which is stored at a specified path on my system. Can somebody provide me a vba code for doing the same? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Vikesh, here is one way,
Sub OpenFiles() Dim sPath As String sPath = "C:\My Documents\" With ThisWorkbook .FollowHyperlink sPath & "test.pdf" .FollowHyperlink sPath & "test.doc" End With End Sub -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2002 & 2003 "Vikesh Jain" wrote in message ups.com... I want to write a macro which on execution opens a file (Word document / PDF - in their respective applications) which is stored at a specified path on my system. Can somebody provide me a vba code for doing the same? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Opening word document through excel vba | Excel Discussion (Misc queries) | |||
Opening a Word Document from Excel - ??Stumped?? | Excel Programming | |||
Opening Word Document with excel | Excel Discussion (Misc queries) | |||
opening a word document from excel | Excel Programming | |||
Opening a Word Document in Excel | Excel Programming |