+ Reply to Thread
Results 1 to 6 of 6

Export multiple sheets to new workbook

  1. #1
    Registered User
    Join Date
    09-20-2015
    Location
    Haarlem, The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    16

    Post Export multiple sheets to new workbook

    Hi everyone,

    I'm having trouble with my VBA code.
    I have about 15 sheets in my workbook, but I want to export 5 sheets to a new workbook with the click of a button and save it in the same directory as the existing workbook.
    The button part is easy. I looked up something for the exporting, but it isn't working properly.
    Can someone gives me some tips?
    This is what I got so far, I didn't use the actual names of the sheets.

    Please Login or Register  to view this content.
    I'm looking forward to your awnsers!

    - Daan

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Export multiple sheets to new workbook

    Hi Bossie,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    09-20-2015
    Location
    Haarlem, The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    16

    Re: Export multiple sheets to new workbook

    Hi xladept,

    It works!
    Just one last question. In the existing workbook there are cells with formulas. When the sheets are copied, the formulas are visible in the formula bar. Is it possible that the cells in the copied sheets only show plain text instead of the formulas?

    - Daan

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Export multiple sheets to new workbook

    Hi Bossie,

    To paste only values:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-20-2015
    Location
    Haarlem, The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    16

    Re: Export multiple sheets to new workbook

    It works!
    Thanks for your help!

    - Daan

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Export multiple sheets to new workbook

    You're welcome and 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. VBA export sheets from open workbook to closed workbooks
    By wannabeexcelguy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2015, 10:18 AM
  2. [SOLVED] Save two sheets and export them to new workbook
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-02-2015, 09:52 PM
  3. Replies: 0
    Last Post: 02-06-2015, 04:50 PM
  4. [SOLVED] export from access multiple queries to same workbook into seperate sheets
    By trevor69 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2015, 04:33 AM
  5. Export Sheets to Workbook and Email
    By Simon.xlsx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2014, 09:51 AM
  6. Export Sheets to a New workbook
    By ioncila in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2009, 11:28 PM
  7. Export Sheets Values to new Workbook
    By neodjandre in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-13-2007, 06:33 PM

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