Hello,
I have created a macro to open a program where drawings are stored. I am trying to open the .pdf file that appears in this program. I need to click on the "View / Print Drawings" button but am not sure how to do this.
I will not be able to just search the folder where the drawings are stored because there are several revs for each drawing.
Any help is greatly appreciated, thanks! Below is the code I have now.
Range("H4").Select
dr = 4
dc = 8
Do Until ActiveCell.Value = ""
dwg = Cells(dr, dc)
dwg = dwg + "*"
Shell ("C:***program_location***")
Application.SendKeys "{TAB}"
Application.SendKeys "{TAB}"
Application.SendKeys dwg
Application.SendKeys "~"
ActiveCell.Offset(1, 0).Select
dr = dr + 1
Loop
End Sub
Thanks again.
I have created a macro to open a program where drawings are stored. I am trying to open the .pdf file that appears in this program. I need to click on the "View / Print Drawings" button but am not sure how to do this.
I will not be able to just search the folder where the drawings are stored because there are several revs for each drawing.
Any help is greatly appreciated, thanks! Below is the code I have now.
Range("H4").Select
dr = 4
dc = 8
Do Until ActiveCell.Value = ""
dwg = Cells(dr, dc)
dwg = dwg + "*"
Shell ("C:***program_location***")
Application.SendKeys "{TAB}"
Application.SendKeys "{TAB}"
Application.SendKeys dwg
Application.SendKeys "~"
ActiveCell.Offset(1, 0).Select
dr = dr + 1
Loop
End Sub
Thanks again.