From a VBA script, I send 2 SendKeys commands which opens 2 dialogs.
SendKeys "%feu" & StrFileName &"{Enter}"
Debug.print "Hello"
Wait 1
Debug.print "Hello2"
Sendkeys "{right}"+"{right}"+"{enter}"
The first command will open a Save as dialog, enter the file name path and close the dialog. After closing this dialog, a second dialog is automatically opened by the software under which the VBA macro runs. The second Sendkeys command should close the second dialog. However, it seems that the second command is not executed and the second dialog remains opened. Hello is displayed in the immediate window but not hello2
Any ideas of workaround?
SendKeys "%feu" & StrFileName &"{Enter}"
Debug.print "Hello"
Wait 1
Debug.print "Hello2"
Sendkeys "{right}"+"{right}"+"{enter}"
The first command will open a Save as dialog, enter the file name path and close the dialog. After closing this dialog, a second dialog is automatically opened by the software under which the VBA macro runs. The second Sendkeys command should close the second dialog. However, it seems that the second command is not executed and the second dialog remains opened. Hello is displayed in the immediate window but not hello2
Any ideas of workaround?