Kemidan2014
Board Regular
- Joined
- Apr 4, 2022
- Messages
- 229
- Office Version
- 365
- Platform
- Windows
VBA Code:
Dim shell As Object
Set shell = CreateObject("Wscript.Shell")
Dim path As String
Set path = "O:\2 - QC Data Tracking System\Database Tables\brokepinsheets\" & Me.Program & " " & Me.Product & ".pdf"
If Me.Defect = "Broke Pin" Then
shell.Run "path"
End If
I am attempting to create a simple code to open a PDF but i am getting a compile error saying "Object required" then blue highlights ".product" in blue I tried changing concatenation but it went but my path string went red on me.
any suggestions?