Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am looking to paste a row of data onto a cell if the cell meets the
criteria. What I cannot seem to get this macro to do is move down to the next cell, evaluate the contents, if it matches the criteria, paste the copied row of data, then move onto the next cell until it encounters a blank cell. Any ideas? Range("$AP$2:$DZ$2").Select Selection.Copy Dim rg1 As Range Set rg1 = Range("AP12") Do Until IsEmpty(rg1) If rg1 = "2" Then ActiveSheet.Paste Else Set rg1 = rg1.Offset(1, 0) End If Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell offset issue | Excel Worksheet Functions | |||
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul | Excel Worksheet Functions | |||
Offset | Excel Discussion (Misc queries) | |||
offset? | Excel Programming | |||
Problem with Range.Cells.Offset and Range.Cells( row + offset, column) | Excel Programming |