Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Formatting Columns


Thx Tom. But the code is still coloring the blank columns same as th
max values. I was hoping to format ONLY the column max cells and res
of the tables with a different colorindex.

Anyways, if I changed the code to:

With Range("HHData").Columns(i)

If WorksheetFunction.CountBlank(.Cells) < .Rows.Count Then,

it does the required tasks.

Thanks anyways. Appreciate your help

--
baner
-----------------------------------------------------------------------
banerg's Profile: http://www.excelforum.com/member.php...fo&userid=1533
View this thread: http://www.excelforum.com/showthread.php?threadid=26963

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Conditional Formatting Columns

The results would only be different if you had values in cells in that
column that were outside the range HHData.

But you asked: "How can I search for empty columns"

So apparently you meant empty only within the HHData range. In any event,
the same modification to my code would handle that and require fewer
operations.

For i = 1 To NCol
With Range("HHData").Columns(i)
If Application.CountA(.cells) < 0 Then
.FormatConditions.Delete

--
Regards,
Tom Ogilvy



"banerg" wrote in message
...

Thx Tom. But the code is still coloring the blank columns same as the
max values. I was hoping to format ONLY the column max cells and rest
of the tables with a different colorindex.

Anyways, if I changed the code to:

With Range("HHData").Columns(i)

If WorksheetFunction.CountBlank(.Cells) < .Rows.Count Then,

it does the required tasks.

Thanks anyways. Appreciate your help.


--
banerg
------------------------------------------------------------------------
banerg's Profile:

http://www.excelforum.com/member.php...o&userid=15339
View this thread: http://www.excelforum.com/showthread...hreadid=269636



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
Conditional formatting columns DRKENNE Excel Discussion (Misc queries) 2 June 17th 09 07:20 PM
Conditional Formatting - 2 columns hamilton_heff[_2_] Excel Worksheet Functions 2 January 3rd 09 07:48 PM
conditional formatting- same value, different columns wynand Excel Discussion (Misc queries) 4 January 30th 08 12:03 PM
conditional formatting for key-value columns kang New Users to Excel 8 August 27th 07 05:35 PM
Conditional Formatting Columns banerg[_2_] Excel Programming 1 October 15th 04 06:48 PM


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