Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Would anyone know how to copy data from one workbook to another and include the Values and Formatting only ie: not the formulas. I can copy either the values or the formats but don't seem to be able to copy both... Workbooks("a.xls"). _ Worksheets("b"). _ Range("A1:C27").Copy Workbooks("a.xls"). _ Worksheets("Sheet1").Range("A1:C27").PasteSpecial xlPasteValues it would be lovely if someone could help with this. -- Thanks... Jinx |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Add a line:
Worksheets("Sheet1").Range("A1:C27").PasteSpecial Paste:=xlPasteFormats Hth, Merjet |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Marvellous... thanks very much
-- Thanks... Jinx "merjet" wrote: Add a line: Worksheets("Sheet1").Range("A1:C27").PasteSpecial Paste:=xlPasteFormats Hth, Merjet |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
With Workbooks("a.xls") .Worksheets("b").Range("A1:C27").Copy With .Worksheets("Sheet1").Range("A1:C27") .PasteSpecial xlPasteValues .PasteSpecial xlPasteFormats End With End With In article , jinx wrote: Hi, Would anyone know how to copy data from one workbook to another and include the Values and Formatting only ie: not the formulas. I can copy either the values or the formats but don't seem to be able to copy both... Workbooks("a.xls"). _ Worksheets("b"). _ Range("A1:C27").Copy Workbooks("a.xls"). _ Worksheets("Sheet1").Range("A1:C27").PasteSpecial xlPasteValues it would be lovely if someone could help with this. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
lovely.... thanks very much... and sooo fast!
-- Thanks... Jinx "JE McGimpsey" wrote: One way: With Workbooks("a.xls") .Worksheets("b").Range("A1:C27").Copy With .Worksheets("Sheet1").Range("A1:C27") .PasteSpecial xlPasteValues .PasteSpecial xlPasteFormats End With End With In article , jinx wrote: Hi, Would anyone know how to copy data from one workbook to another and include the Values and Formatting only ie: not the formulas. I can copy either the values or the formats but don't seem to be able to copy both... Workbooks("a.xls"). _ Worksheets("b"). _ Range("A1:C27").Copy Workbooks("a.xls"). _ Worksheets("Sheet1").Range("A1:C27").PasteSpecial xlPasteValues it would be lovely if someone could help with this. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy Range including Formats and Forumulas | Excel Programming | |||
How can I find vaues of cells using 2 search criteria? | Excel Programming | |||
validation and omitting blank vaues from list | Excel Worksheet Functions | |||
copy range and formats to new workbook | Excel Programming | |||
Copy range and formats to new Workbook | Excel Programming |