ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   fill color (https://www.excelbanter.com/excel-discussion-misc-queries/202352-fill-color.html)

jd

fill color
 
Is it possible to format a spreadsheet to remove the fill color of each cell
once data has been entered into that cell? How?

Thanks

--
JD

Don Guillett

fill color
 
Assuming you have a fill color in the cell first try
formatconditional formatformula is=c1<""format to no color

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"JD" wrote in message
...
Is it possible to format a spreadsheet to remove the fill color of each
cell
once data has been entered into that cell? How?

Thanks

--
JD



Otto Moehrbach[_2_]

fill color
 
JD
You will need VBA for that. Put the following macro in the sheet module
of your sheet. This macro will remove the fill color in any cell on the
sheet when any entry is made into that cell. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Not IsEmpty(Target.Value) Then _
Target.Interior.ColorIndex = xlNone
End Sub
"JD" wrote in message
...
Is it possible to format a spreadsheet to remove the fill color of each
cell
once data has been entered into that cell? How?

Thanks

--
JD




All times are GMT +1. The time now is 01:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com