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
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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
Back
Top