+ Reply to Thread
Results 1 to 4 of 4

Change Code to save in selected sheets with inputboks

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Change Code to save in selected sheets with inputboks

    HI I have below code which works fine to save in this example sheet2 in new workbook.
    What i really would like is a code which with and inputboks will ask which sheets i want to save in the saved new workbook.
    Example if i want to save Sheet2 and Sheet3 and Sheet11. i can write in the inputboks 1,2,11
    I have 11 Sheets from 2 to 11, where it would be great to choose which i want to save in new workbook.
    Here below is the code i use for save one specified sheet. And if some can change it to work with upper criteria,
    it would really be great.
    I have attached a test workbook to try with below.
    Hope some have the time to help.
    Sincerely
    Abjac

    Below my code to save one specified sheet in new workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Change Code to save in selected sheets with inputboks

    Administrative note

    Still using XL2003 as indicated in your profile?
    If not,perhaps update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to? Members tailor answers based on your Excel version.
    Thanks

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Change Code to save in selected sheets with inputboks

    HI I just updated in i use excel 2010 and at work excel 2013

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Change Code to save in selected sheets with inputboks

    HI I still play with this and below code can specify the selected sheets but i need a input box where i can specify which sheet i need safe in new workbook.
    This is the code where i can specify the sheets here its from sheet2 to sheet11 which i need. I can change the code so it safe the sheets i want. But not with a input box between Sheet2 and Sheet11 which is what i need. I was thinking to example in a input box put 2 as sheet2, 5 as sheet5 example so i type 2,5 and it will safe sheet2 and sheet5 in a new workbook. Have a look please
    Sincerely Abjac

    This is the code where i can specify the sheets but without a input box to select.

    Please Login or Register  to view this content.

+ 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. Save Selected Excel sheets as PDF
    By mgs815 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2019, 06:02 AM
  2. Excel Macro - to move selected sheets no a new workbook and save, and save as pdf
    By manekankit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2019, 01:42 PM
  3. [SOLVED] Code Change to Save multi-selected emails
    By nathandavies9 in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 08-10-2017, 08:20 AM
  4. [SOLVED] need a VBA code to change and create sheets name according to the selected month.
    By Imran Magsi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-18-2016, 05:52 AM
  5. Only save selected sheets in new file?
    By jamewoong in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 02:10 PM
  6. [SOLVED] Save a selected subset of sheets
    By zenita in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2012, 08:00 AM
  7. [SOLVED] How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook?
    By Dmitry in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2006, 07:50 AM

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