Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Everybody,
Why the following statement can't run successfully, ---------- With ActiveSheet .Range("A1").Copy Destination:=.Range("A4").PasteSpecial paste:=xlPasteValues End With ---------- I need to use the them together, Destination -- can let stay at a sheet, PasteSpecial -- can only copy the value, not the color or border. Any suggestion? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
use two separate calls. ..range(...).copy ..range(...).special ... "myBasic" wrote: Hi Everybody, Why the following statement can't run successfully, ---------- With ActiveSheet .Range("A1").Copy Destination:=.Range("A4").PasteSpecial paste:=xlPasteValues End With ---------- I need to use the them together, Destination -- can let stay at a sheet, PasteSpecial -- can only copy the value, not the color or border. Any suggestion? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for reply:
The real case: With ActiveSheet 'in Book1.xls .Cells(k, 5).Copy Workbooks("master.xls").Worksheets(subjectSheet(i) ).Cells(k + 100, 1).PasteSpecial paste:=xlPasteValues End With It doesn't work, think that there are two different workbooks. Regards. "Frank Kabel" wrote: Hi use two separate calls. .range(...).copy .range(...).special ... "myBasic" wrote: Hi Everybody, Why the following statement can't run successfully, ---------- With ActiveSheet .Range("A1").Copy Destination:=.Range("A4").PasteSpecial paste:=xlPasteValues End With ---------- I need to use the them together, Destination -- can let stay at a sheet, PasteSpecial -- can only copy the value, not the color or border. Any suggestion? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy Chart and PasteSpecial | Charts and Charting in Excel | |||
Using a PasteSpecial within a Destination:= line | Excel Worksheet Functions | |||
Copy PasteSpecial | Excel Programming | |||
Copy & PasteSpecial | Excel Programming | |||
Copy and pastespecial without formulas | Excel Programming |