conditional formating??

G

Guest

i would like the word "need" to appear in cells that are blank. i can do
something similar with conditional formating where the blank cells turn red
when empty... but i cant figure out how to have words inserted instead.

Thanks
 
C

Chip Pearson

You can't. Conditional Formatting can't insert text into a cell.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
P

Pete

Press F5 (Go To) then click Special and select blanks. Type the word
"NEED" then press CTRL-ENTER rather than <enter>.

Hope this helps.

Pete
 
G

Guest

is their an alternative way to achieve this, where a cell range if blank
contains the word "need"
 
C

Chip Pearson

The only way is to use a macro.

Sub AAA()
Dim Rng As Range
On Error GoTo End_Macro
For Each Rng In Range("A1:A10").SpecialCells(xlCellTypeBlanks) '<
change
Rng.Value = "need"
Next Rng
End_Macro:
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
C

Chip Pearson

Or, faster,

Range("A1:A10").SpecialCells(xlCellTypeBlanks).Value = "need"



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top