Using Function keys with toggle buttons

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hi,

Is it possible to use the function keys to activate a
certain toggle button on a form.

What coding do I need to do?

I always thought it was the sendkeys command but I could
be wrong.

Any help greatly appreciated.

Martin
 
Is it possible to use the function keys to activate a
certain toggle button on a form.

What coding do I need to do?

I think it's Form.KeyPreview = True and then trapping the Form_KeyPress or
KeyDown event. But I don't often do this!

An alternative is to use the Autokeys macro: see help.
I always thought it was the sendkeys command but I could
be wrong.

No: SendKeys is a way to simulate keypresses in another application and is
often (ahem) unsuccessful.

HTH


Tim F
 
Back
Top