Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default SendKeys variable

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default SendKeys variable

create a password string constant?

dim strPassword as string
strPassword = "alk51"

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


"snax500" wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SendKeys Help ajvasel Excel Programming 2 August 9th 06 04:48 PM
Always Sendkeys... Duncan[_5_] Excel Programming 0 May 4th 06 09:10 AM
SendKeys [email protected] Excel Programming 1 July 25th 05 06:05 PM
Sendkeys Jim Excel Programming 1 April 16th 05 06:44 PM
SendKeys? CMK Excel Programming 2 February 23rd 05 12:03 AM


All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"