Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Initiating a macro from a control button

I have a large spreadsheet that has two possible ways of viewing by
hiding or unhiding columns. I can write a macro to hide or unhide the
columns. What I am interested in is there a way to control macros for
each view with a control button. Any advice would be very much
appreciated.

TerryM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Initiating a macro from a control button

Yes, it is not hard. You could have it such that the button has a state, if
pressed you get one view, if pressed again you get another. Or you could
have click for one view and shift-click for another.

What do you want?

--

HTH

RP

"TerryM" wrote in message
om...
I have a large spreadsheet that has two possible ways of viewing by
hiding or unhiding columns. I can write a macro to hide or unhide the
columns. What I am interested in is there a way to control macros for
each view with a control button. Any advice would be very much
appreciated.

TerryM



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initiating a Macro Setts Excel Worksheet Functions 2 June 28th 08 05:27 PM
Control button / macro Sarah Excel Discussion (Misc queries) 2 February 11th 07 04:45 AM
Macro: automatically initiating upon cell click pmp613 Excel Discussion (Misc queries) 1 December 28th 06 09:46 AM
initiating a macro johnT Excel Worksheet Functions 9 April 2nd 05 03:43 PM
assign a macro to a control button ewan72 Excel Discussion (Misc queries) 1 December 3rd 04 02:04 PM


All times are GMT +1. The time now is 02:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"