keithkemble
Board Regular
- Joined
- Feb 15, 2002
- Messages
- 160
I posted this Sat am and am now lost.
Can someone help me with theis routine.
It worked perfectly well. i.e. it scroll line by line to the bottom of the range and copies the selected range to another sheet and pastes incrementally.
Brill !
However I only want it to select the cell with a "c" or "C" in column E.
I cannot get it to select only those rows, Any suggestions.
Thanks :-
Sub cmr()
Dim i
i = 15
' To select condition c or C in column e then place in sheet cmr at A15
Sheets("mobile").Select
Range("e15").Select
For Each X In Range("E15", Range("E16").End(xlDown))
If X = "" Then Exit For
' If ActiveCell.Value <> "c" Then GoTo nextrow
Sheets("mobile").Activate
Range("A" & i).Select
Range("A" & i & ":H" & i).Select
Selection.Copy
Sheets("cmr").Select
Range("A15").Select
Sheets("cmr").Select
Range("A2000").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlValues
Sheets("mobile").Select
nextrow: i = Selection.Row + 1
' End If
' End If
Next
Sheets("mobile").Select
Range("E15").Select
End Sub
Can someone help me with theis routine.
It worked perfectly well. i.e. it scroll line by line to the bottom of the range and copies the selected range to another sheet and pastes incrementally.
Brill !
However I only want it to select the cell with a "c" or "C" in column E.
I cannot get it to select only those rows, Any suggestions.
Thanks :-
Sub cmr()
Dim i
i = 15
' To select condition c or C in column e then place in sheet cmr at A15
Sheets("mobile").Select
Range("e15").Select
For Each X In Range("E15", Range("E16").End(xlDown))
If X = "" Then Exit For
' If ActiveCell.Value <> "c" Then GoTo nextrow
Sheets("mobile").Activate
Range("A" & i).Select
Range("A" & i & ":H" & i).Select
Selection.Copy
Sheets("cmr").Select
Range("A15").Select
Sheets("cmr").Select
Range("A2000").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlValues
Sheets("mobile").Select
nextrow: i = Selection.Row + 1
' End If
' End If
Next
Sheets("mobile").Select
Range("E15").Select
End Sub