Computing.Net > Forums > Office Software > Filling Blank cell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Filling Blank cell

Reply to Message Icon

Name: banglalovers
Date: June 12, 2008 at 13:19:04 Pacific
OS: xp
CPU/Ram: 512/2.7
Product: intel
Comment:

Hi,

I have a excel sheet with 11 coloumn and with several data. But some of the cells are blank or dont have any data. I just want to fill those blank cells with a special text like "no data". Is it possible with a formula or with a macro?



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: June 13, 2008 at 06:11:30 Pacific
Reply:

 
Sub FillBlanks()
For Each cel In ActiveSheet.UsedRange
If cel = "" Then cel.Value = "No Data"
Next
End Sub

or
 
Sub ColorBlanksRed()
For Each cel In ActiveSheet.UsedRange
If cel = "" Then cel.Interior.ColorIndex = 3
Next
End Sub


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Filling Blank cell

Excel - making a blank cell show X www.computing.net/answers/office/excel-making-a-blank-cell-show-x/1854.html

Creating blank cells in excel www.computing.net/answers/office/creating-blank-cells-in-excel/2549.html

excel 2000 auto fill www.computing.net/answers/office/excel-2000-auto-fill/4639.html