Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax when using " in SendKeys Statement 1

Status
Not open for further replies.

Tiglet

Technical User
Apr 12, 2002
94
GB
Hi,

I am trying to use quote marks within the Sendkets string but I can't get the syntax right.

SendKeys "+{TAB}{ENTER}mafile.csv{TAB}{TAB}{ENTER}{TAB}/{TAB}","{TAB}{TAB}{ENTER}", True


The "," in the middle of the String is what causes the problem - not really a suprise but how do I get it to work, I've tried brackets round it and all sorts - it's driving me mad!!

Thanks in advance



Tiglet [reading]

[green]Duct tape is like the force; it has a light side & a dark side, and it holds the universe together. [/green]

 
you nearly had it you need to just add extra quotes around quotes within a statement. like below

SendKeys "+{TAB}{ENTER}mafile.csv{TAB}{TAB}{ENTER}{TAB}/{TAB}"",""{TAB}{TAB}{ENTER}", True


Thanks Rob.[yoda]
 
Rob,

Fabulous, works a treat!
Thankyou!
Have a star!!

[bigsmile][bigsmile][bigsmile][bigsmile][bigsmile][bigsmile][bigsmile][bigsmile][bigsmile][bigsmile][bigsmile][bigsmile]



Tiglet [reading]

[green]Duct tape is like the force; it has a light side & a dark side, and it holds the universe together. [/green]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top