Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
.Paste
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
.Paste
The source and Destination of a copy have to be the same size object
Copying a worksheet you need after or before othewise you get a new workbook 1) worksheets("Sheet1").copy 'creates a new workbook with 1 sheet. No Paste required 2) worksheets("Sheet1").copy after:=sheets(1) 'no paste required 3) Columns("A").Copy Columns("D").Paste 4) Rows(1).Copy Rows(6).Paste 5) Range("A1:D10").Copy Range("D101").Paste or Range("A1011:D110") 6) Range("A1:D1").Copy Range("A2:A10").Paste Note the paste can be the first cell of the destination or the entire destination "Bishop" wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Paste and Paste Special No Longer Working - Excel 2003 | Excel Discussion (Misc queries) | |||
Automating copy/paste/paste special when row references change | Excel Programming | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
Copy and Paste macro needs to paste to a changing cell reference | Excel Programming | |||
How do I capture user paste action and convert to Paste Special | Excel Programming |