Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'm trying to save one sheet in one workbook as a new workbook. My code is shown below. There is one range on the worksheet which has formulas in it. That range is named "customer_name". I don't want to copy the formulas. I want only values to go to the new workbook. The code I have below works, but it is slow. I was wondering if there was a way to modify the Worksheets("PO").copy command so that it only copies only values. thanks in advance for your help. Andy Dim wb As Workbook Worksheets("PO").Copy Set wb = ActiveWorkbook wb.SaveAs "NEW_NAME.XLSX" wb.Worksheets("PO").Range("customer_name").Select selection.Copy selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False wb.Close |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy values of worksheet a to workbook b | Excel Discussion (Misc queries) | |||
Copy Values From Worksheet to another Worksheet same Workbook | Excel Programming | |||
Copy Values from WorkSheet back to Another Workbook Replacing Values in Worksheet | Excel Programming | |||
automatically copy values of worksheet into new workbook | Excel Programming | |||
Copy worksheet values and formats into another workbook | Excel Programming |