Function Access Keys

  • Thread starter Thread starter Greg B
  • Start date Start date
G

Greg B

I am wondering if it possible to add use of the f keys during excel vba? if
so how or where do I look this up?

Thanks

Greg B
 
Application.OnKey "{F10}", "myProc"


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Sorry just to go on with this a bit, I have tried what you wrote and
nothing is happening.

What I am trying to do is have another userform open when the f2 key is
pressed.

the userform title is "sales"

Thanks again
 
Works for me

Sub SetupF2()
Application.OnKey "{F2}", "OpenForm"
End Sub

Sub OpenForm()
UserForm1.Show
End Sub


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Thanks I got it working from the spreadsheet code, Is it possible to get it
working from the userform called main.

Sorry to be annoying.

Greg B
 
Don't understand what you mean exactly.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Back
Top