I have this code in the CmdSend_Click() button:

Dim retval

retval = Shell("C:\Program Files\Nokia\Nokia PC Suite 6\TextMessageEditor.exe", 1)

SendKeys "abc", 1
SendKeys "{TAB}", 1
SendKeys "Your mesage here", 1


It works BUT it opens the .exe file twice then sometimes it fills the fields in on just one form and other times it splits the message across the two. I've tried putting the code in CmdSend mousedown, mouseup, pressdown ect to see if that helps but even tho it does only bring up the form once it is minimized rather than on the creen with the focus set

Any ideas on how to make the .exe file open just once?