Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8038641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:17:59+00:00 2026-06-05T03:17:59+00:00

I have one large Excel workbook with multiple worksheets containing pivot tables linked to

  • 0

I have one large Excel workbook with multiple worksheets containing pivot tables linked to a big PowerPivot source. I want to save each worksheet separately into workbooks, only as values.

I have managed to do this on a workbook without pivot tables. But I get the following message with this project. I don’t want to copy the embedded data for each save as it is crazy slow. Any hints or help?

Option Explicit

Sub JhSeparateSave()
    Dim ws As Worksheet
    Dim NewName As String

    If MsgBox("Copy specific sheets to a new workbook" & vbCr & _
    "New sheets will be pasted as values, named ranges removed" _
    , vbYesNo, "NewCopy") = vbNo Then Exit Sub

    '       Input box to name new file
    NewName = InputBox("Please Specify the name of your new workbook", "New Copy")

    With Application
        .ScreenUpdating = False

        For Each ws In ThisWorkbook.Worksheets
            If ws.Visible = xlSheetVisible Then
                MsgBox ("Copy step 1")
                ws.Copy

                With ActiveWorkbook.Sheets(1).UsedRange
                    .Cells.Copy
                    .Cells.PasteSpecial xlPasteValues
                    .Cells(1).Select
                End With

                ActiveWorkbook.SaveAs ThisWorkbook.Path & "\" & NewName & "-" & ws.Name
                ActiveWorkbook.Close
                MsgBox ("Saved sheet: " & ws.Name)
            End If
        Next ws

    End With
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:18:01+00:00Added an answer on June 5, 2026 at 3:18 am

    what i eventually used:

    Option Explicit
    
    Sub Copier()
    
    Dim ws As Worksheet
    Dim wsNew As Worksheet
    Dim NewName As String
    Dim wsOriginalName As String
    
    'On Error GoTo Errorcatch
    
    If MsgBox("1. Copy to new sheet. 2. Change to values. 3. Move to new workbook" & vbCr & _
    "New sheets will be pasted as values, named ranges removed" _
    , vbYesNo, "NewCopy") = vbNo Then Exit Sub
    
    '       Input box to name new file
    NewName = InputBox("Please Specify the month name of your new workbook", "New Copy")
    
    
    With Application
        .ScreenUpdating = False
        .DisplayAlerts = False
    
        'iterate through all worksheets
        For Each ws In ThisWorkbook.Worksheets
    
            'ignore hidden worksheets
            If ws.Visible = xlSheetVisible Then
    
                'copy sheet within original workbook
                wsOriginalName = ws.Name
                ws.Copy After:=Sheets("FAQ")
    
                'switch to copied sheet
                Set wsNew = ActiveSheet
    
                'convert to values and format
                With wsNew.UsedRange
                    .Copy
                    .PasteSpecial xlPasteValuesAndNumberFormats
                    .PasteSpecial xlPasteFormats
                    .Cells(1, 1).Select
                End With
    
                'save into new workbook
                wsNew.Copy
                ActiveWorkbook.SaveAs ThisWorkbook.Path & "\" & "MIS-FY2013-" & NewName & "-" & wsOriginalName
                ActiveWorkbook.Close
    
                'MsgBox ("going to try to delete: " & wsNew.Name)
                'delete copied sheet
                wsNew.Delete
    
             End If
         Next ws
    
    End With
    

    End Sub

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large amount of data i want to import into one sqlite
I have one large div with one smaller div inside it. The smaller div
In following code, I have one large component, and I'd like only the level4
I have one voter table which contain large amount of data. Like Voter_id name
basically I have thumbnails at the bottom of the page and one large image.
I have two arrays, one is very large (more than million entries) and other
I have a large-ish project that contains one class that reads from a file
i have a large mysql database table in which one column contains values ranging
I have a large string, similar to this one: BREW pot HTCPCP/1.0 Accept-Additions: #milk;3#whiskey;splash
I have two large identical-sized files. One is ASCII plain text, and the other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.