+ Reply to Thread
Results 1 to 9 of 9

Save Multiple Worksheets as New Workbooks Based on Sheet Prefixes

Hybrid View

  1. #1
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Save Multiple Worksheets as New Workbooks Based on Sheet Prefixes

    Hi hamidxa

    I don't have the issue you describe but it's probably something in my settings.

    Start from a clean Worksheet...only Master Worksheet.

    Try this...if it does not work as expected there is a brute force solution...add the line of Code as indicated
    For Each rCell In Sheets("Temp").Range("B2", Sheets("Temp").Range("B" & Rows.Count).End(xlUp))
        On Error Resume Next
        
        Application.SheetsInNewWorkbook = 1 'Add this line of Code
        Set wkBk1 = Workbooks.Add()
        Application.DisplayAlerts = False
        wkBk1.SaveAs myNewPath & rCell & ".xlsx"
        wkBk1.Close True
        Application.DisplayAlerts = True
        On Error GoTo 0
      Next rCell
    Let me know of issues.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Save Multiple Worksheets as New Workbooks Based on Sheet Prefixes

    Hi hamidxa

    Here it is (my settings). It's why I didn't have your issue. When my Platform creates New Workbooks, the New Workbook has ONLY one WorksheetSheets in New Book.jpg

  3. #3
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Save Multiple Worksheets as New Workbooks Based on Sheet Prefixes

    Quote Originally Posted by jaslake View Post
    Hi hamidxa

    Here it is (my settings). It's why I didn't have your issue. When my Platform creates New Workbooks, the New Workbook has ONLY one WorksheetAttachment 369263

    jaslake,

    This is perfect.
    Thank you so much for the explanation!

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Save Multiple Worksheets as New Workbooks Based on Sheet Prefixes

    You're welcome...glad I could help. Thanks for the Rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Create single worksheet from multiple workbooks with 4 worksheets in each workbook
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2013, 03:35 AM
  2. Need to combine data from multiple worksheets in multiple workbooks into 1 worksheet
    By ginric99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2013, 07:58 AM
  3. [SOLVED] VBA to save multiple worksheets as separate CSV files using name of worksheet
    By Yg74 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2012, 10:55 AM
  4. VBA to save multiple worksheets as separate CSV files using name of worksheet
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2012, 08:08 AM
  5. Multiple workbooks and worksheets to 1 worksheet
    By marklister in forum Excel General
    Replies: 2
    Last Post: 02-07-2012, 10:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1