+ Reply to Thread
Results 1 to 7 of 7

Saving multiple worksheets

  1. #1
    Registered User
    Join Date
    06-17-2016
    Location
    Rogers, AR
    MS-Off Ver
    10
    Posts
    9

    Smile Saving multiple worksheets

    Hi everyone!

    I have a macro that saves the first worksheet of a workbook based on specific cell information.

    Please Login or Register  to view this content.
    I would like to expand this macro to save the first and second worksheet, if there is data in a specific cell of the second worksheet.

    Any suggestions would be greatly appreciated.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Saving multiple worksheets

    Hi there,

    See if the following code does what you need:

    Please Login or Register  to view this content.
    The highlighted values can be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    06-17-2016
    Location
    Rogers, AR
    MS-Off Ver
    10
    Posts
    9

    Re: Saving multiple worksheets

    Hi Greg,

    It worked, but now I have a new issue caused by adding the new code. Should I start a new post or continue on this one.

    Thank you for your help

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Saving multiple worksheets

    Hi again,

    Many thanks for your feedback - glad I was able to help.

    If the new issue has been caused by adding the above code then I imagine it's quite in order to ask the question in this thread.

    Regards,

    Greg M

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,432

    Re: Saving multiple worksheets

    Yes, here is fine.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    06-17-2016
    Location
    Rogers, AR
    MS-Off Ver
    10
    Posts
    9

    Re: Saving multiple worksheets

    Thanks Greg. I enjoy this site because it helps me a lot and I don't want to do anything frowned upon

    I was writing the explanation and the solution was right there in front of me!! I fixed the second issue.

    Your code has saved me so much time!!!

    Thank you! Thank you! Thank you!!

  7. #7
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Saving multiple worksheets

    Hi again,

    Thanks for your latest post, and well done on fixing the second issue yourself!

    You're very welcome - I'm delighted that I was able to help.

    Regards,

    Greg M

+ 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. Data Driven Saving of Multiple Worksheets in CSV Format
    By bathsheba in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-25-2016, 06:48 PM
  2. Saving multiple selected worksheets from a listbox as separate excel files
    By dylanrose in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2015, 10:11 PM
  3. Replies: 5
    Last Post: 08-08-2014, 03:50 PM
  4. [SOLVED] Looping through cell ranges in multiple worksheets and prevent saving if cell value empty
    By Spritz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-22-2013, 11:24 AM
  5. [SOLVED] macro for saving multiple worksheets in to a new workbook
    By ste1605 in forum Excel General
    Replies: 7
    Last Post: 05-08-2012, 10:05 AM
  6. Printing PDF file with multiple worksheets- saving only first sheet
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2007, 01:03 AM
  7. Saving Multiple Worksheets as Text
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2007, 04:16 PM

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