hazelsisson
Programmer
Hi guys,
I have a problem with some code I've written which takes some data from Sheet 1 of my workbook and pastes it into Sheet 2.
The error occurs on the line "Range(Bcell).Copy". When I debug I can see that Bcell is holding the value of the cell; I'm not sure if it should be this or the address to the cell.
The sheet is open and active when I run the macro.
Any help would be wonderful.
Thanks,
Hazel
I have a problem with some code I've written which takes some data from Sheet 1 of my workbook and pastes it into Sheet 2.
The error occurs on the line "Range(Bcell).Copy". When I debug I can see that Bcell is holding the value of the cell; I'm not sure if it should be this or the address to the cell.
Code:
Sub wholeRow()
For Each Bcell In Range("Sheet1!C3:Sheet1!C36")
Sheets("Sheet1").Select
Range(Bcell).Copy
Sheets("Sheet2").Select
...(etc)...
Next Bcell
End Sub
The sheet is open and active when I run the macro.
Any help would be wonderful.
Thanks,
Hazel