SendKeys variable

S

snax500

In Excel2000, I have the following code ...

Application.SendKeys "alk51", True

This code sends my password to another application. The problem is
that I have this code in many places since I am running many reports
from this application. Can I use a variable with SendKeys so that I
only have to change my password once?

Thanks
 
G

Guest

create a password string constant?

dim strPassword as string
strPassword = "alk51"

and then in the application:
Application.SendKeys strPassword, True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Refreshing web query that is password protected 1
SendKeys on a locked PC 1
Sendkeys bug? Office 07 2
Programming SendKeys 4
Sendkeys 6
Interaction and SendKeys 2
Edit a Cell 8
SendKeys to open application 4

Top