SendKeys variable

  • Thread starter Thread starter snax500
  • Start date Start date
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
 
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 with enter 1
Programming SendKeys 4
Sendkeys bug? Office 07 2
Sendkeys 6
SendKeys on a locked PC 1
Interaction and SendKeys 2
Substitute for SendKeys? 5

Back
Top