Range problem
Mark,
Why not put it all together
Worksheets("TABLES").Cells(row, column).Copy _
Destination:=Worksheets("hidden").Cells(rowCounter , 1)
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"Mark" wrote in message
...
Hi NG
I have a problem with ranges
i want to do a copy operation.
Worksheets("TABLES").Activate
Cells(row, column).Select
Selection = Worksheets("TABLES").Cells(row, column)
Worksheets("hidden").Activate
Cells(rowCounter, 1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks
_
:=False, Transpose:=False
This works but have the anoying side effect that the worksheets are
activated, which causes flickering. So i tried this instead
Worksheets("TABLES").Cells(row, column).Select
Selection.Copy Destination:=Worksheets("hidden").Cells(rowCounter , 1)
Works fine!! there is no flickering, but now for some reason it only works
if the worksheet TABLES is active before i do the operation.
Basically i want to do something like this
Worksheets("TABLES").Range(Cells(row, column)).Copy _
Destination:=Worksheets("hidden").Cells(rowCounter , 1)
But now i get this strange run time error 1004
If i do something like
Worksheets("TABLES").Range("a4").Copy _
Destination:=Worksheets("hidden").Cells(rowCounter , 1)
Then it works without TABLES being active before i do the operation.
STRANGE
the documentation clearly states that i can do a Range(Cell(x,y)). I DONT
GET IT
Regards Mark
|