LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #15   Report Post  
Frantic Excel-er
 
Posts: n/a
Default

Thanks Bernie...

I finally figured it out the other day....

I felt so dumb....the whole time, the formatting wasn't working because I
wasn't in the first cell of the row I was trying to fix....

I do have another question that would be great if you can help with...it is
a separate thread "Macro - message box if find nothing"....Jim Rech was
helping, but he decided I should be able to figure it out on my own, and I am
stuck...If you don't mind reading thru, I would appreciate some input...

Thanks again...

Sara

"Bernie Deitrick" wrote:

Sorry, Frantic - I went on a short vacation...


Range("H:H").Select
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=""India Only"""
Selection.FormatConditions(1).Interior.ColorIndex = 7
Selection.FormatConditions.Add Type:=xlExpression,
Formula1:="=ISERROR(H1)"
Selection.FormatConditions(2).Interior.ColorIndex = 7


HTH,
Bernie
MS Excel MVP


"Frantic Excel-er" wrote in
message ...
Bernie.....help......please......I am really trying hard......I have been
at
it for almost 4 hours........going crazy....

Can't figure out how to conditional format when the formula result is
#N/A.....

"Bernie Deitrick" wrote:

Don't use code, use conditional formatting. Look in help.

HTH,
Bernie
MS Excel MVP


"Frantic Excel-er" wrote in
message
...
Bernie,

I have some more formatting issues now that pertain to the code you
wrote me
in this thread.

I now need to find in column H...all the cells that have a formula
response
of #N/A, or "India Only", and I need to highlight those in red. I
tried to
copy this code that formatted the other column for me, but it doesn't
work -
I get a duplicate compile error. Any suggestions on how I can get
these
responses highlighted????

Thanks.

Sara

"Bernie Deitrick" wrote:

Lurk here and read the posts and answers, and read any book in the VBA
Power
Programming series by John Walkenbach.

HTH,
Bernie
MS Excel MVP


"Frantic Excel-er" wrote in
message ...
Hi Bernie,

Thanks so much for all the help....The code works great....I can't
stop
re-running it just to see it work.....This is very helpful....and
also,
thanks for the tip on finding the word first, and then executing the
formating steps.....I would have never even known you can do
that.....

One more question........what would be a good direction to go in to
learn
more about visual basic?????











 
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
Number formatting Fred Holmes Excel Discussion (Misc queries) 2 February 21st 05 06:02 PM
How do I sort a column a unique number? ChelleA Excel Worksheet Functions 7 February 19th 05 10:38 AM
Countif("between start/end times) Ian Jones Excel Discussion (Misc queries) 0 January 6th 05 06:17 PM
Whats the function to count the total times a word is displayed Monk Excel Discussion (Misc queries) 3 December 10th 04 10:39 PM
Convert week number into calendar month? WickyWick Excel Worksheet Functions 2 November 9th 04 09:01 PM


All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"