Send Keys

G

Guest

Hello All,

I have used the SendKeys method but having trouble with this one.
When a user form is initialized I would like to check if the CapsLock key is
on and then if not turn it on so users entries are consistent with text
strings. I know how to add the if but the key method is not working

Here are 2 examples I tried;
SendKeys CAPSLOCK
SendKeys = {CAPSLOCK}

What am I doing wrong?

Thanks
 
G

Guest

The syntax you need to use is:-

Application.SendKeys("{CAPSLOCK}")

but I can't get that to work either. Why not allow users to type their data
into the user form and then use the UCase function to change it?
 

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

Top