![]() |
auto color blank cells ,best solution
i would like to automatically color all blank cells unfilled which can vary
on each sheet at close of workbook,any suggestions .The total number of blank cells will be no more than 100 -- BD3 -- BD3 |
Maybe you're looking for something like this. It works for cells A1:J4 on
Sheet 1, but you can change that as required: For rwIndex = 1 To 4 For colIndex = 1 To 10 With Worksheets("Sheet1").Cells(rwIndex, colIndex) If .Value = "" Then Worksheets("Sheet1").Cells(rwIndex, colIndex).Select With Selection.Interior .ColorIndex = 6 .Pattern = xlSolid End With End If End With Next colIndex Next rwIndex You can refer to this code within an macro or at close, whichever is prefered. Hope this helps. -Chad "bigdaddy3" wrote: i would like to automatically color all blank cells unfilled which can vary on each sheet at close of workbook,any suggestions .The total number of blank cells will be no more than 100 -- BD3 -- BD3 |
All times are GMT +1. The time now is 03:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com