Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Replace blank cells with 0

Are the cells truely empty or is it formulas that are retuning blank. If it
is truely blank then...

On Error Resume Next
Range("A1:Z1").SpecialCells(xlCellTypeBlanks).Valu e = 0
On Error GoTo 0
--
HTH...

Jim Thomlinson


"scrabtree23" wrote:

I need a code that will search a range (let's say A1:Z1) and will replace any
blank cells with a zero (0).

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Replace blank cells Newsgal Excel Discussion (Misc queries) 1 August 31st 06 07:13 PM
Replace blank cells with NONE TimT Excel Programming 3 July 7th 06 11:04 PM
Replace cells with blank diggers Excel Worksheet Functions 1 November 17th 05 12:23 AM
Replace cells with blank Elkar Excel Worksheet Functions 0 November 16th 05 10:21 PM
Search and Replace Blank Cells wpw3 Excel Programming 2 October 21st 05 12:42 AM


All times are GMT +1. The time now is 09:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"