.Paste
The Paste Method applies to Worksheets, Charts and some other objects, but
not the Sheets object. I think that is because a Sheets object can contain
either a Worksheet or a Chart, but since the Paste Method applies to
Worksheets and Charts individually, I'm guessing the Sheets object is too
general for the underlying code to work with. Try using...
With Worksheets("DirectoryCopy")
and see if that makes your code work.
--
Rick (MVP - Excel)
"Bishop" wrote in message
...
I have the following code:
With Sheets("DirectorCopy")
.Paste
Why doesn't this work? Keep getting Object doesn't support property or
method. I've tried:
.Cells.Paste
.Paste
.ActiveWorksheet.Paste
.Paste("A1")
.ActiveSheet.Paste Destination:=Worksheets("DirectorCopy").Range("A1" )
(which is how the help file says to do it)
None of these work.
what will work here?
|