Thread: Sendkeys
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
jim jim is offline
external usenet poster
 
Posts: 19
Default Sendkeys

Hi I cant work out which worksheet function to use to
spark off some code if the button F6 is pressed.

I know it is something like -

Sub Worksheet_Whats this??()

If Application.SendKeys(vbKeyF6) Then
MsgBox ("you pressed F6")
End
End If

End Sub

Thanks
Jim