• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Difficulty for assigning shortcut key for a macro

ANKUSHRS1

Member
Hi,

Please help me to get rid of this problem.

I want to assign a key for a macro...I have assigned such keys function my previous macro but Now I am facing the problem..

maybe this is location or scope of macro or variables....i cant figure it out..pls help
upload_2018-10-8_16-58-49.png

upload_2018-10-8_17-1-24.png
 
Click on the The Workbook module
Then add a sub

Code:
Private Sub Workbook_Open()
   Application.onkey "+(F10)", "Add"
End Sub

Save the file and re-open it
 
Back
Top