PDA

Click to See Complete Forum and Search --> : Sendkeys agen


Stepeh
Jan 6th, 2000, 06:18 AM
SendKeys Sends the keys one key at a time.
So how wod you Send the keys alt f4 at the Same time.

I'v Tride SendKeys "%{" & Chr$(18) &" "& vbKeyF4 & "}" but that gets me the invaled Procduer Call or agument Error


Thaks

p.s. Yes I do Wont to Close the Ative Form

plese Help

[This message has been edited by Stepeh (edited 01-07-2000).]

LG
Jan 6th, 2000, 06:24 AM
Sending such combination will close a form, which is currenty active. Are you sure that is what you want?

ChrisJackson
Jan 6th, 2000, 08:34 AM
Here's how you do it:


SendKeys "%{F4}"


All the best.

Chris