sheets
A range object can not span multiple sheets. The object hierarchy is the
application contains workbooks, workbooks contain sheets, and sheets contain
ranges. In the same way that a sheet object can not span multiple workbooks a
range object can not span multiple sheets.
--
HTH...
Jim Thomlinson
"ranswert" wrote:
I am trying to get a name of a sheet from a cell then go to that sheet to put
data into a range of cells. I get an error on the following code:
Set b = Sheets(a(4)).Range(Cells(33, 3), Cells(33, 8))
'b' is a range and 'a' is an array(1 to 8) as string
What am I doing wrong?
Thanks
|