ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to Open A File with Visual Basic (https://www.excelbanter.com/excel-programming/282887-how-open-file-visual-basic.html)

Lance[_3_]

How to Open A File with Visual Basic
 
I am trying to write a command for a command button in
Excel (on click). When I got to the visual basic editor
what is the syntax for opening a file such
as "C:\Reports\Reports.pdf. Thank you

Trevor Shuttleworth

How to Open A File with Visual Basic
 
Lance

something like:

Shell "C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe
C:\WRATBlue[1].pdf"

Regards

Trevor


"Lance" wrote in message
...
I am trying to write a command for a command button in
Excel (on click). When I got to the visual basic editor
what is the syntax for opening a file such
as "C:\Reports\Reports.pdf. Thank you





All times are GMT +1. The time now is 01:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com