Cormat blank cells

brian5857

Board Regular
Joined
Jan 28, 2005
Messages
64
is there code that will turn all of the empty or unused cells in a worksheet a color??
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
you can use conditional formatting and apply it to the cells you want. Are you sure you want all 16+ million cells filled. Your book will become huge when you try to save it.
 
Upvote 0
Select cell A1. Then go to the menu bar and choose Format>Conditional Formatting. From the pull down menu choose Formula is then in the next space enter =A1="" . Now click on the Format button and choose the patterns tab. Choose a background color you like. Press OK til you are out of this.

Now while A1 is still selected right click and choose copy. While holding the Ctrl key down hit the space bar. Right click on the selected area. Choose Paste Special. Then choose formats.

If you don't still have column A selected hit the Ctrl+space bar again. Right click and choose copy. Now press these keys at the same time in this order Ctrl+space bar+Shift+right arrow. Now right click and choose Paste Special. Then choose formats.

It takes more time to read this than it takes to do it.
 
Upvote 0
nbrcrunch said:
you can use conditional formatting and apply it to the cells you want. Are you sure you want all 16+ million cells filled. Your book will become huge when you try to save it.

I thought it would bloat the file too, but I used a blank workbook and and it was 14KB when I saved it. This was for one sheet only.
 
Upvote 0
Hi babycody:

Quoting from the method that you described ...

"Select cell A1. Then go to the menu bar and choose Format>Conditional Formatting. From the pull down menu choose Formula is then in the next space enter =A1="" . Now click on the Format button and choose the patterns tab. Choose a background color you like. Press OK til you are out of this."

The above is all that is required ... no further copying is necessary.

What do you think?
 
Upvote 0
Yogi Anand said:
Hi babycody:

Quoting from the method that you described ...

"Select cell A1. Then go to the menu bar and choose Format>Conditional Formatting. From the pull down menu choose Formula is then in the next space enter =A1="" . Now click on the Format button and choose the patterns tab. Choose a background color you like. Press OK til you are out of this."

The above is all that is required ... no further copying is necessary.

What do you think?

Hey Yogi

If I just followed what you quoted me on I would end up with cell A1 formatted only. My assumption was that OP wants to have entire sheet conditional formatted. Somewhere along the way I have been taught to copy conditional formats down and then over. Being the MVP that you are I wonder if I am missing your point, or that you know something I haven't yet discovered. If so please let me in on yet another Excel lesson.
 
Upvote 0
Hi babycody:

With all the cells selected, and cell A1 as the ActiveCell, using ...

Formula Is ... =A1=""

Conditional Formatting will apply to all the cells of the worksheet ... without any further copying. However, to convince yourself I suggest you try that and then let us take it from there!
 
Upvote 0

Forum statistics

Threads
1,226,223
Messages
6,189,710
Members
453,566
Latest member
ariestattle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top