Hello,
I have the following(partial macro) that works, but oft been told to steer clear of ActiveCell property. Any replacement suggestions for this somewhat convoluted code that copies values from disparate parts of a sheet, then pastes into another.
Do
Set tempR = Range(ActiveCell, ActiveCell.Offset(5, 1))
tempR.Select
Selection.Copy
Sheets("Rpt_Dump").Select
ActiveSheet.Paste
ActiveCell.End(xlDown1).Select
ActiveCell.Offset(1, 0).Select
Sheets(i).Select
ActiveCell.Offset(10, 6).Select
Do
If ActiveCell.Value = "x" Then
Selection.EntireRow.Copy
Sheets("Rpt_Dump").Select
ActiveSheet.Paste
ActiveCell.Offset(1, 0).Select
Sheets(i).Select
ActiveCell.Offset(1, 0).Select
Else: ActiveCell.Offset(1, 0).Select
End If
Loop Until ActiveCell(1, -1).Value =
I have the following(partial macro) that works, but oft been told to steer clear of ActiveCell property. Any replacement suggestions for this somewhat convoluted code that copies values from disparate parts of a sheet, then pastes into another.
Do
Set tempR = Range(ActiveCell, ActiveCell.Offset(5, 1))
tempR.Select
Selection.Copy
Sheets("Rpt_Dump").Select
ActiveSheet.Paste
ActiveCell.End(xlDown1).Select
ActiveCell.Offset(1, 0).Select
Sheets(i).Select
ActiveCell.Offset(10, 6).Select
Do
If ActiveCell.Value = "x" Then
Selection.EntireRow.Copy
Sheets("Rpt_Dump").Select
ActiveSheet.Paste
ActiveCell.Offset(1, 0).Select
Sheets(i).Select
ActiveCell.Offset(1, 0).Select
Else: ActiveCell.Offset(1, 0).Select
End If
Loop Until ActiveCell(1, -1).Value =