vonguyenphu
New Member
- Joined
- May 26, 2019
- Messages
- 29
Hi all,
I have a module as below to open pdf files from an excel sheet
The problem is that i need to install this macro to others' computers. But each time i have to adjust the code based on their default pdf application (they want to use their app). Followhyperlink can do that but always shows an annoying message.
Can you give me suggestion on how to find the address of the pdf default application or write a macro which is more adaptable to different computers?
Thank you!
I have a module as below to open pdf files from an excel sheet
Code:
sCell = Application.ActiveWindow.ActiveCell.Text
sFile = "C:\Program Files\Nitro\Pro 11\NitroPDF C:\Users\" & Environ("username") & "\Downloads\" & sCell & ".pdf"
retal = Shell(sFile, 1)
The problem is that i need to install this macro to others' computers. But each time i have to adjust the code based on their default pdf application (they want to use their app). Followhyperlink can do that but always shows an annoying message.
Can you give me suggestion on how to find the address of the pdf default application or write a macro which is more adaptable to different computers?
Thank you!