#1   Report Post  
Posted to microsoft.public.excel.misc
Mike F.
 
Posts: n/a
Default Macro quesetion

Is there a way to have a macro run based on the condition of a cell or a
toggle button? Examlpe, if Type = Local then the macros on sheet 2 that are
needed for long estiamtes will automatically run.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Macro quesetion

I'm not sure what you're asking, but if that cell changes by typing, you could
use a worksheet_change event to fire the other macros.

If you want to read more about these kinds of events:

Chip Pearson's site:
http://www.cpearson.com/excel/events.htm

David McRitchie's site:
http://www.mvps.org/dmcritchie/excel/event.htm

If you meant you wanted to check in your macro for the value in that cell...

if lcase(worksheets("Sheet1").range("a1").value) = "local" then
'do one thing
else
'do a different thing
end if



Mike F. wrote:

Is there a way to have a macro run based on the condition of a cell or a
toggle button? Examlpe, if Type = Local then the macros on sheet 2 that are
needed for long estiamtes will automatically run.


--

Dave Peterson
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
Editing a simple macro Connie Martin Excel Worksheet Functions 5 November 29th 05 09:19 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM


All times are GMT +1. The time now is 01:39 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"