LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default passing value with button to macros

is it possible to pass a particular value with a button to a macro?

in my case I have 12 buttons (one for each month).
If the user hits a particular button I want to pass along the month
corresponding to that button to my main macro.
The main macro is always the same. it already has logic in it to
handle each month.

I could have a small macro for each button that would then call my main
macor with the corresponding month but that doesn't seem very clean or
practical.

there must be an easy way to always call the macro with a different
string as a paramater..

I'm open to any ideas here...

is there a way to get a string from a select list? in other words I
could have a list with all my months and the user would select the
desired month from the list and then hit the run button (only one
button as oppose to 12)! ..

that would be nicer but I am unsure how to that


thanks for any help

Pabs


---
Message posted from http://www.ExcelForum.com/

 
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
macros button Norm Excel Discussion (Misc queries) 3 May 1st 10 09:11 PM
Macros to Button Premal Excel Discussion (Misc queries) 2 April 15th 10 12:45 PM
Check Box and Button Macros SweetTea023 New Users to Excel 1 June 18th 09 08:36 PM
Two Macros under One command button Rony Excel Discussion (Misc queries) 1 March 11th 06 12:11 PM
1 button for 2 macros lunker55 Excel Discussion (Misc queries) 5 June 20th 05 06:25 PM


All times are GMT +1. The time now is 12:50 PM.

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"