VBA Copy and Paste Special Values only from one Workbook to another

jeff_ro

New Member
Joined
Dec 9, 2011
Messages
7
Help,

I am trying to copy a selection of worksheets from one workbook to another. The issue i have is that when they copy across the formulas are copied across, whereas i only want the values.

i have searched high and low, but cant seem to get nothing to work.

My code keeps all the formatting as i require but i just want the values not all my underlying formulas. Can anyone offer any ideas

here is my current code:

Code:
Private Sub Save_NewWb()
Application.ScreenUpdating = False
On Error Resume Next

UpdateFooters
SaveLoc = BrowseForFolder & "\" & Range("trigramD").Value & " " & Range("name").Value & " SCS"
If fso.FolderExists(SaveLoc) Then
    If MsgBox("Folder already exists, delete?", vbYesNo, "Error") = vbYes Then
        fso.DeleteFolder (SaveLoc), True
    Else
        Exit Sub
    End If
End If
fso.CreateFolder (SaveLoc)
SaveLoc = SaveLoc & "\"
For i = LBound(Range("version_list").Value) To UBound(Range("version_list").Value)
    If Len(Range("version_list")(i).Value) > 0 Then IssueNo = Range("version_list")(i).Value
Next i
FileLabel = Range("trigramD").Value & " " & Range("Vessel_name").Value & " SCS.iss " & IssueNo & ".xls"
Sheets(Array("SCS Front Page", "Copyright", "Subnet Overview", "VLAN 20", "VLAN 10,30,50", "WAN")).Copy
        ActiveWorkbook.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
        
        ActiveWorkbook.SaveAs Filename:= _
        SaveLoc & FileLabel, FileFormat:=xlNormal, ReadOnlyRecommended:=False, CreateBackup:=False
              
   End Sub
 

Some videos you may like

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Watch MrExcel Video

Forum statistics

Threads
1,122,463
Messages
5,596,283
Members
414,051
Latest member
tabecker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top