Does anybody know why the following code fails when the active sheet is a Chart sheet. There are no chart objects (other than the chart itself) selected.
error is 1004 - "Method 'Cells' of object '_Global' failed"
thanks and merry xmas!!
;-)
Code:
ActiveWorkbook.Names.Add Name:="Data_Full", _
RefersTo:="=RawData!" & Range(Cells(1, 1), Cells(lRow, LAST_DATA_COL)).Address
error is 1004 - "Method 'Cells' of object '_Global' failed"
thanks and merry xmas!!
;-)
If a man says something and there are no women there to hear him, is he still wrong? ![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
How do I get the best answers?
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
How do I get the best answers?