#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Macro Fill

Hello there im looking for a macro or formula that will fill all empty cell
from A1 to A1020 with "0" without affecting the blank cell properties i.e.
colors, sizes, etc. Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 257
Default Macro Fill

Me again, palups. This is a question for the Excel Programming forum; this
one's dedicated to worksheet functions. If you've never written a macro
before and you'd rather learn how to program in VBA than just have the code
handed to you, drop me a line via email and I'll tutor you a little.

--- "palups" wrote:
Hello there im looking for a macro or formula that will fill all empty cell
from A1 to A1020 with "0" without affecting the blank cell properties i.e.
colors, sizes, etc. Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Macro Fill

The below will fill the blank cells in range A1:A1020 if they are truly
blank..and within the cells are within the used range.

Sub Macro1()
On Error Resume Next
Range("A1:A1020").SpecialCells(xlCellTypeBlanks).V alue = 0
On Error GoTo 0
End Sub

--
Jacob


"palups" wrote:

Hello there im looking for a macro or formula that will fill all empty cell
from A1 to A1020 with "0" without affecting the blank cell properties i.e.
colors, sizes, etc. Thank you!

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
Macro Fill Formula palups Excel Worksheet Functions 1 January 20th 10 04:28 AM
Fill Macro II Mike Excel Worksheet Functions 0 February 6th 09 07:24 PM
Fill Down Macro Lost in Excel Excel Discussion (Misc queries) 7 December 8th 08 10:24 PM
Fill formula down using macro Charles Excel Discussion (Misc queries) 2 November 13th 08 02:05 AM
Fill Blanks Macro LLoraine Excel Discussion (Misc queries) 2 August 29th 07 03:12 PM


All times are GMT +1. The time now is 04:51 PM.

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"