In ThisWorkbook:
Application.OnKey "{F1}", "UnHide"
Where "F1" is the button you're assigning the macro to and "UnHide" is
the name of the macro. Lookup "OnKey" in VBA Help for a list of the
keys names to use. - Pikus
---
Message posted from
http://www.ExcelForum.com/