Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Simple conditional macro

Sub CallOneOrTheOther()
if Range("A1").Value 100 then
macro1
else
macro2
End if
End Sub

Sub Macro1()
msgbox "Value is greater than 100"
End Sub

Sub Macro2()
msgbox "Values is less than or equal to 100"
End Sub

--

Regards,
Tom Ogilvy

"Boz.theale" wrote in message
...
As a novice user, can anyone please supply me with VB code to enable me
to construct a macro that calls one of two other macros dependent on
the value of a particular worksheet cell

Many thanks



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
A very simple conditional formatting question Mel[_4_] Excel Discussion (Misc queries) 6 February 17th 09 02:28 AM
SIMPLE VBA MACRO FOR CONDITIONAL FORMATTING FARAZ QURESHI Excel Discussion (Misc queries) 4 July 31st 07 12:10 PM
simple conditional formatting bcamp1973 Excel Discussion (Misc queries) 5 March 10th 06 11:28 PM
Conditional formatting, simple question... Kelly Excel Worksheet Functions 2 March 1st 06 07:31 PM
Simple conditional formula JC Home Excel Programming 2 July 10th 03 03:40 PM


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