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

Hello
New to macro writing so my question is pretty basic...

I want the macro to run only if the value of reference cell is less than a
certain return. For example, if the return is less than 30% run the macro.
If the return is greater than or equal to 30% do not run the macro.

How do I go about doing this? The rest of my macro works fine, I just need
to limit the range of its use.

Any and all help is appreciated.

Thanks
--
sd
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
If Statement to run a macro Secret Squirrel Excel Discussion (Misc queries) 4 July 15th 08 03:43 PM
how can i use an if statement to run a macro? Jack Excel Programming 2 March 4th 05 12:21 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM
If-statement in Macro fabalicious[_25_] Excel Programming 1 October 8th 04 08:40 AM
Macro or IF statement??? HELP! Julia Easter Excel Programming 8 May 26th 04 03:52 PM


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