tstout1000
New Member
- Joined
- Jan 26, 2022
- Messages
- 11
- Office Version
- 365
- Platform
- Windows
I have been searching everwhere for VBA copde to allow a user to click on different hyperlinks in one tab that will open specific embedded pdfs that I have stored in another sheet. The application is to be able to click on a part number that has the hyperlink and open the speicifc spec sheet pdf which i have embedded in another. I found code from 2004, but it crashes every time. Below is the code. It jumps to the tab with all the embedded pdf but doesn't open the pdf. It bombs on the sceond line. Object 0128 is the name box of the specific embedded pdf. Any help would be great.
Private Sub Worksheet_Activate()
ActiveSheet.Shapes("Object 0128").Select
Selection.Verb Verb:=xlVerbOpen
End Sub
Private Sub Worksheet_Activate()
ActiveSheet.Shapes("Object 0128").Select
Selection.Verb Verb:=xlVerbOpen
End Sub