yinkajewole
Active Member
- Joined
- Nov 23, 2018
- Messages
- 281
I do run this VBA code
Sub sbCopyRangeToAnotherSheet()
Sheets("Sheet1").Range("B1:I1").Copy Destination:=Sheets("Sheet2").Range("D39:K39")
Sheets("Sheet1").Range("B2:I2").Copy Destination:=Sheets("Sheet3").Range("D39:K39")
End Sub
i.e. changing the range "B1:I1" and sheet "Sheet2" incrementally.
Is there a way the run the code for these portions incrementally without entering the code line by line manually?
Sub sbCopyRangeToAnotherSheet()
Sheets("Sheet1").Range("B1:I1").Copy Destination:=Sheets("Sheet2").Range("D39:K39")
Sheets("Sheet1").Range("B2:I2").Copy Destination:=Sheets("Sheet3").Range("D39:K39")
End Sub
i.e. changing the range "B1:I1" and sheet "Sheet2" incrementally.
Is there a way the run the code for these portions incrementally without entering the code line by line manually?