Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Color Background cells in workbook

I was wondering if it is possible to create a macro that will fill all cells
that are blank in my workbook with a certain color(actually gray) so that it
looks presentable?

Thank you

Diggsy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default Color Background cells in workbook

Sub blankgray()
Selection.SpecialCells(xlCellTypeBlanks).Select
With Selection.Interior
.ColorIndex = 15
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
End Sub

This will colour all blank cells up to your "end" cell.
I.e. you may have to have a non-blank cell(space?) further down and to the
left of
your normal range, to get the desired effect.

--
Greetings from New Zealand
Bill K
"Diggsy" wrote in message
...
I was wondering if it is possible to create a macro that will fill all
cells
that are blank in my workbook with a certain color(actually gray) so that
it
looks presentable?

Thank you

Diggsy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Color Background cells in workbook

Diggsy, use Conditional Formating, it's under the Format menu.

Highlight the section you want to format and select Format --
Conditional formating.
Fool around with it a bit and you'll get the hang of it.

Also check out http://www.contextures.on.ca/xlCondFormat02.html
for other tips on conditional formating.

SMonczka

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 to add cells with a particular background color? BruceN1 Excel Discussion (Misc queries) 4 February 29th 08 10:05 PM
change background color in cells Joe Excel Worksheet Functions 4 November 6th 07 11:20 PM
Color background with Matching cells in row Diggsy Excel Worksheet Functions 6 January 31st 06 08:58 PM
Value to be given to all cells with black background color Norbert Jaeger Excel Programming 4 May 18th 05 11:56 AM
Applying background color to cells Erik[_6_] Excel Programming 0 February 26th 04 03:41 AM


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