I've created a script in Autohotkey to automate webform entry from an excel workbook. The script is setup to enter the data from a line in excel into the form and then delete that row in excel. I am trying to create a loop in VBA to automate this task but am running into a few problems.
I can use shell to call the exe, but how can I make excel wait before it continues on(to then loop and call the exe again)
What is the best type of loop into this situation? I would like the exe to continue to be called until cell A3 is blank.
Thank you all for your help, it is much appreciated.
Daniel
Edit for David: I tried using the code from that link and get an error.
Sub run_code()
Dim wsh As Object
Set wsh = VBA.CreateObject("WScript.Shell")
Dim waitOnReturn As Boolean: waitOnReturn = True
Dim windowStyle As Integer: windowStyle = 1
Dim errorCode As Integer
wsh.Run("C:\Profiles\user\Desktop\macro3.exe", windowStyle, waitOnReturn)
End Sub