Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi guys,
I have a macro that unhides and hides some columns. I have a button that toggles the macro depending on the label of the button. But cause a button takes too much space,( I have other buttons there too) I would like to know if there is a way to program a combination of keystrokes to handle my macro. for example CTRL + "-" will hide columns and CTRL + "+" will unhide them. thanks/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cesar,
Select the columns, and goto DataGroup And OutlineGroup and group these columns. You then get an outline symbol which allows you to collapse and expand the hidden columns. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Cesar Zapata" wrote in message ... Hi guys, I have a macro that unhides and hides some columns. I have a button that toggles the macro depending on the label of the button. But cause a button takes too much space,( I have other buttons there too) I would like to know if there is a way to program a combination of keystrokes to handle my macro. for example CTRL + "-" will hide columns and CTRL + "+" will unhide them. thanks/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cesar
See Application.OnKey in VBA Help. HTH Anders Silvén "Cesar Zapata" skrev i meddelandet ... Hi guys, I have a macro that unhides and hides some columns. I have a button that toggles the macro depending on the label of the button. But cause a button takes too much space,( I have other buttons there too) I would like to know if there is a way to program a combination of keystrokes to handle my macro. for example CTRL + "-" will hide columns and CTRL + "+" will unhide them. thanks/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why not just use the same shortcut with a toggle
Columns("g").EntireColumn.Hidden = _ Not Columns("g").EntireColumn.Hidden -- Don Guillett SalesAid Software "Cesar Zapata" wrote in message ... Hi guys, I have a macro that unhides and hides some columns. I have a button that toggles the macro depending on the label of the button. But cause a button takes too much space,( I have other buttons there too) I would like to know if there is a way to program a combination of keystrokes to handle my macro. for example CTRL + "-" will hide columns and CTRL + "+" will unhide them. thanks/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Toggle read only | Excel Discussion (Misc queries) | |||
Toggle between Worksheets | Excel Discussion (Misc queries) | |||
Need to Use 1 Button to toggle On or Off | Excel Discussion (Misc queries) | |||
toggle between worksheets? | Excel Discussion (Misc queries) | |||
toggle grid | Excel Programming |