sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
Trying to open a pdf using excel 2010.
I get the "trusted" window which I click yes to, and then nothing. Adobe has always worked fine on this machine. I'd be happy opening with Google Chrome if that was more effective....
I get the "trusted" window which I click yes to, and then nothing. Adobe has always worked fine on this machine. I'd be happy opening with Google Chrome if that was more effective....
Code:
Sub Opener()Dim tstamp As String
Dim Namer As String
Dim pdf As String
With Sheets("Background")
Namer = .Range("B4")
End With
On Error Resume Next
pdf = Environ("Userprofile") & "\Documents\" & tstamp & "\" & Namer & ".pdf"
ActiveWorkbook.FollowHyperlink pdf
End Sub