bamaisgreat
Well-known Member
- Joined
- Jan 23, 2012
- Messages
- 831
- Office Version
- 365
- Platform
- Windows
I was wandering if someone could help me edit the code below to open the pdf in the file that has the letters GGS in the file name?
Public Sub openJOBLIST()
Dim path As String
Dim PDFfile As String
path = "\\hq\dfsdata\Data\UserHomes\jamey.eerson\My Documents\pdf-NEW\Latest Job List"
If Right(path, 1) <> "" Then path = path & ""
PDFfile = Dir(path & "*.pdf")
If PDFfile <> vbNullString Then
ThisWorkbook.FollowHyperlink path & PDFfile
End If
End Sub
Public Sub openJOBLIST()
Dim path As String
Dim PDFfile As String
path = "\\hq\dfsdata\Data\UserHomes\jamey.eerson\My Documents\pdf-NEW\Latest Job List"
If Right(path, 1) <> "" Then path = path & ""
PDFfile = Dir(path & "*.pdf")
If PDFfile <> vbNullString Then
ThisWorkbook.FollowHyperlink path & PDFfile
End If
End Sub