I am having difficulty installing new network printer via sendkeys, the issue is that I send the first sendkeys code which is show start dialog = ctrl +esc
then the next line I wish to sendkeys "cmd", but instead of sending it to the same application, it looses focus and send it to my vba script and stops....any suggestions on how to keep focus on the desktop window I will be grateful. IE
then the next line I wish to sendkeys "cmd", but instead of sending it to the same application, it looses focus and send it to my vba script and stops....any suggestions on how to keep focus on the desktop window I will be grateful. IE
Code:
Application.SendKeys "^{ESC}"
Application.SendKeys "cmd"
Application.SendKeys "{enter}"
Application.SendKeys "\\network\printername"
Many thanks in advance