Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry, I forgot to include the error trapping. Use this code instead...
Sub FillColBlanks() Dim Col As Variant, Data As Range, A As Range On Error GoTo NoCellsFound For Each Col In Array("B", "C", "E") Set Data = Range(Cells(1, Col), Cells(Rows.Count, Col).End(xlUp)) For Each A In Data.SpecialCells(xlCellTypeBlanks).Areas A.Value = A(1).Offset(-1).Value Next Next NoCellsFound: End Sub Rick Rothstein (MVP - Excel) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to fill blank cells | Links and Linking in Excel | |||
Macro to transpose data to fill blank cells in table | Excel Programming | |||
Use Autofill in a macro to fill blank cells until next text - | Excel Programming | |||
Use Autofill in a macro to fill blank cells until next text - | Excel Programming | |||
A macro to fill in the blank cells | Excel Programming |