Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to Paste to a Variable Range - HELP
Please help - I am trying to create a macro that works through a selected
range (loop, specifically a column) and finds empty cells and pastes the text from the cell directly above it into the empty cell. If anyone has an idea or an easier way to accomplish this it would be appreciated. Brandon |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to Paste to a Variable Range - HELP
try this
Sub pastedown() For Each c In Range("a2:a15") If Len(Cells(c.Row, "a")) < 1 Then c.Value = c.Offset(-1) End If Next End Sub -- Don Guillett SalesAid Software "Brandon - Excelinator" <Brandon - wrote in message ... Please help - I am trying to create a macro that works through a selected range (loop, specifically a column) and finds empty cells and pastes the text from the cell directly above it into the empty cell. If anyone has an idea or an easier way to accomplish this it would be appreciated. Brandon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to copy&paste a variable range rows and colums | Excel Discussion (Misc queries) | |||
Range used in a macro needs to be variable | Excel Worksheet Functions | |||
variable range in a macro | Excel Discussion (Misc queries) | |||
Is it possible to set a variable range in a macro? | About this forum | |||
Paste a Range from a variable | Excel Programming |