Click to See Complete Forum and Search --> : how to write code to press the 'Enter' key (not manually press)? -thanks


lindawqu
July 12th, 2001, 10:59 PM
how to write code to press the 'Enter' key (not manually press)? -thanks

cksiow
July 12th, 2001, 11:05 PM
SendKeys "{ENTER}"


HTH

cksiow
http://vblib.virtualave.net - share our codes

rayxu
July 12th, 2001, 11:22 PM
thanks a lot!!!

How to write code to press 'Ctrl' and 'C' key at the same time and also the arrow down key? thanks again.

cksiow
July 12th, 2001, 11:38 PM
not sure, maybe sendkeys "^(C{DOWN})"


HTH

cksiow
http://vblib.virtualave.net - share our codes

michi
July 13th, 2001, 12:25 AM
SendKeys "%C" 'Sends ALT+C
SendKeys "^C" 'Sends CTRL+C
SendKeys "+C" 'Sends SHIFT+C

Regards,

Michi
MCSE, MCDBA

John G Duffy
July 13th, 2001, 09:46 AM
The MSDN HElp facility describes how to use Sendkeys for all the keyboard keys inclusinf Ctrl and Alt, Enter and combinations of keys.

John G