Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how do I start a macro using If Then statments

how do I start a macro using If Then statments

I want to be able to change font colour to amber when difference between
values is less than ten and change it to red if the values are equal or value
2 is greater
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default how do I start a macro using If Then statments

Hi,

You can't have an if statement along the lines of

=if(a110,this macro,that macro)

but you may be able to do it with worksheet_Change by monitoring the cell
that causes your cell to become 10 but conditional formatting sounds a much
better option.

for example this is a conditional format formula in a1 and looks at a2 and
as soon as A2 is 10+ than a1 there is a colour change

=$A$2-$A$1=10

Post an example of what you are trying to achieve and you will get more
precise help

Mike

"acspollock" wrote:

how do I start a macro using If Then statments

I want to be able to change font colour to amber when difference between
values is less than ten and change it to red if the values are equal or value
2 is greater

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default how do I start a macro using If Then statments

You don't need a macro.

Use Conditional Formatting.


Gord Dibben MS Excel MVP

On Mon, 5 May 2008 00:34:00 -0700, acspollock
wrote:

how do I start a macro using If Then statments

I want to be able to change font colour to amber when difference between
values is less than ten and change it to red if the values are equal or value
2 is greater


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
How do you start a Macro? Michael New Users to Excel 7 February 27th 10 04:55 PM
Sub Macro vrs Function Macro Auto Start Pat Excel Discussion (Misc queries) 7 June 6th 07 09:53 PM
How to start a Macro Rick_T Excel Discussion (Misc queries) 1 December 28th 06 04:50 PM
Macro Start zephyr Excel Discussion (Misc queries) 0 November 13th 06 05:01 PM
start a macro johnT Excel Worksheet Functions 2 March 6th 05 06:43 PM


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