Set a breakpoint and in the Immediate window:
?filepath
Then copy that string and paste it into the Run box (WindowKey + R). What happens?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Have this code on a command button on a form. The field PDFName is also on the form. The filepath comes up OK. However, the line "Application.followhyperlink filepath,1,0" gives an error: RunTime Error 490; Cannot open the specified file." PLEASE HELP!!!!
Dim filepath As String
filepath = "C:\Users\nevadamax\OneDrive\Documents\PMPlus" & Me.PDFName
MsgBox filepath
Application.FollowHyperlink filepath, 1, 0
Set a breakpoint and in the Immediate window:
?filepath
Then copy that string and paste it into the Run box (WindowKey + R). What happens?
Set a breakpoint, then in the Immediate window:
?filepath
Copy that text and put it in the Run box (WindowKey+R). What happens?