Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
SendKeys to open application
Hi! I try to open a program from a macro in Excel and login (the Bloomberg
professional, (not the website)) using SendKeys. With some help from other programmers I got the following code. It does not work at all though and I am lost. Can someone please help me with this? My problems a 1) I get error on the WaitFor €¦line. €ťSub or Function has not been defined€ť 2) If I delete the WairFor line I get error on the AppActivate("1-BLOOMBERG") line. €śIllegal procedure call or argument€ť Sub bbg_login() AppActivate("1-BLOOMBERG") Application.SendKeys "{BREAK}",false WaitFor timevalue("00:00:01") Application.SendKeys "user_Name", false Application.SendKeys "{TAB}", false Application.SendKeys "password", false Application.SendKeys "~", false End Sub Any help appreciated! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Close an application with sendkeys | Excel Programming | |||
The application SendKeys | Excel Programming | |||
SendKeys and Application.ScreenUpdating | Excel Programming | |||
SendKeys to a remote server application | Excel Programming | |||
Application.sendkeys | Excel Programming |