A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
When I open the macro window, all the buttons on the right are grayed out. I cannot click on "create" to create this macro.
Hi Yang,
The commands for editing and running macros are located on the Developer tab, which is hidden by default. To show the Developertab, do the following:
- Click File, and then click Options.
- Click the Customize Ribbon category.
- Under Customize the Ribbon, in the Main Tabs list, click Developer, and then click OK.
For more information, you may refer to the following link:
http://office.microsoft.com/en-us/excel-help/edit-a-macro-HA102749024.aspx?CTT=1
Now:
Alt-F11 to open the VBA editor
Alt-IM to insert a new code module
In the new module, paste the following code
'==========>>
Public Sub Tester()
Application.OnKey "^{s}"
End Sub
'<<=============
Alt-Q to close the VBA editor
Alt-F8 to open the macro window
Select Tester | Run
===
Regards,
Norman