PC Review


Reply
Thread Tools Rate Thread

Conditional Format Excel 2007

 
 
Sue
Guest
Posts: n/a
 
      22nd Dec 2008
Hi All

This will be an easy one for you experts I need help with a macro
to solve the following

Range N3:N200 if any cell in the range has a value of either 40 or 80
then in the Range O3:O200 the cells will have a value of 0(zero) formatted
as 0.00 - Do not need any cell or text colours.

I would put a command button on the sheet and assign the macro

--
Many Thanks

Sue
 
Reply With Quote
 
 
 
 
Bob Umlas, Excel MVP
Guest
Posts: n/a
 
      22nd Dec 2008
Sub Answer()
For each oCell in range("N3:N200")
If oCell.Value = 40 or oCell.Value = 80 then
oCell.Offset(0,1).value = 0
oCell.Offset(0,1).NumberFormat = "0.00"
End If
Next
End Sub

"Sue" wrote:

> Hi All
>
> This will be an easy one for you experts I need help with a macro
> to solve the following
>
> Range N3:N200 if any cell in the range has a value of either 40 or 80
> then in the Range O3:O200 the cells will have a value of 0(zero) formatted
> as 0.00 - Do not need any cell or text colours.
>
> I would put a command button on the sheet and assign the macro
>
> --
> Many Thanks
>
> Sue

 
Reply With Quote
 
Sue
Guest
Posts: n/a
 
      23rd Dec 2008
Hi Bob

Just checked my mail and cut & pasted your reply into the sheet - worked
first time spot on your help is very much appreciated.
--
Many Thanks

Sue


"Bob Umlas, Excel MVP" wrote:

> Sub Answer()
> For each oCell in range("N3:N200")
> If oCell.Value = 40 or oCell.Value = 80 then
> oCell.Offset(0,1).value = 0
> oCell.Offset(0,1).NumberFormat = "0.00"
> End If
> Next
> End Sub
>
> "Sue" wrote:
>
> > Hi All
> >
> > This will be an easy one for you experts I need help with a macro
> > to solve the following
> >
> > Range N3:N200 if any cell in the range has a value of either 40 or 80
> > then in the Range O3:O200 the cells will have a value of 0(zero) formatted
> > as 0.00 - Do not need any cell or text colours.
> >
> > I would put a command button on the sheet and assign the macro
> >
> > --
> > Many Thanks
> >
> > Sue

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format Excel 2007 Marilyn Microsoft Excel Misc 6 14th May 2009 08:46 PM
Conditional Format Excel 2007 Marilyn Microsoft Excel Misc 0 14th May 2009 01:38 PM
Conditional number format in Excel 2007 hmm Microsoft Excel Misc 3 10th Nov 2008 03:54 PM
Saving Excel 2007 conditional formatting in Excel 2003 format fmaccrory@gmail.com Microsoft Excel Misc 0 28th Mar 2008 06:42 AM
Conditional Format - Excel 2007 6538 Microsoft Excel Misc 1 2nd Mar 2008 08:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 AM.