Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding & filling blank cells
I have column D that contains both data and blank cells. I need to find a
way to find the blank cells and fill them with a space. I've tried: For Each z In Range("D1:D") If z.Value = IsEmpty("D") Then z = " " End If Next z but get an error. Any ideas how I can do this? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding & filling blank cells
This puts a space in every blank cell in column D
Sub SpaceInBlankColD() Range("D:D").SpecialCells(xlCellTypeBlanks).Value = " " End Sub -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "scorpiorc" wrote in message ... I have column D that contains both data and blank cells. I need to find a way to find the blank cells and fill them with a space. I've tried: For Each z In Range("D1:D") If z.Value = IsEmpty("D") Then z = " " End If Next z but get an error. Any ideas how I can do this? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding & filling blank cells
Strangely after testing it applies a space to all the blank cells in column
D within the UsedRange...strange. Anyhow, probably what the OP wants anyhow -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "scorpiorc" wrote in message ... I have column D that contains both data and blank cells. I need to find a way to find the blank cells and fill them with a space. I've tried: For Each z In Range("D1:D") If z.Value = IsEmpty("D") Then z = " " End If Next z but get an error. Any ideas how I can do this? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding & filling blank cells
See one more response at your other post.
scorpiorc wrote: I have column D that contains both data and blank cells. I need to find a way to find the blank cells and fill them with a space. I've tried: For Each z In Range("D1:D") If z.Value = IsEmpty("D") Then z = " " End If Next z but get an error. Any ideas how I can do this? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Filling Blank Cells | New Users to Excel | |||
Filling Blank Cells | Excel Worksheet Functions | |||
Filling Blank Cells | Excel Discussion (Misc queries) | |||
Filling in Blank Cells | New Users to Excel | |||
Filling Blank Cells | Excel Programming |