Here is my code:
Sub Password1()
'Loop through all files in a folder
Dim fileName As Variant
fileName = Dir("C:\State_K-1_Info\Password\*.pdf")
While fileName <> ""
'Insert the actions to be performed on each file
Application.SendKeys "{Tab}", True
Application.SendKeys "^(s)", True
Application.SendKeys "%{F4}", True
'Set the fileName to the next file
fileName = Dir
Wend
End Sub
I assume I need some statement that opens the the pdf after the While line, but nothing I have tried works.