+ Reply to Thread
Results 1 to 8 of 8

VBA to save tabs as individual workbooks by tab's name

  1. #1
    Registered User
    Join Date
    11-13-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    5

    VBA to save tabs as individual workbooks by tab's name

    Hello,

    Every month I have to submit a report. It usually takes the whole day because there are a lot of repetitive tasks that come with preparing the report. I need is to save some of the tabs in the attached spreadsheet as their own workbook. I do not know where to even start with VBA for saving in excel.

    I would like for the new workbook to be saved as the title of the tab and into the same folder as the original file. Also, some of the tabs do not need to be saved. In the sample attachment, only tabs "20700", "40002", "10100" and "30300" need to be saved.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: VBA to save tabs as individual workbooks by tab's name

    Hi
    You query is really confusing...... can you explain in detail...

  3. #3
    Registered User
    Join Date
    11-13-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA to save tabs as individual workbooks by tab's name

    Quote Originally Posted by naveenmarapaka View Post
    Hi
    You query is really confusing...... can you explain in detail...
    Hello,

    The query returns all of the information in one tab. I used VBA to separate it into one tab per business unit. Now I need to add something to the VBA to save each tab to a new workbook. The file should be saved as the tab's name.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA to save tabs as individual workbooks by tab's name

    There's no code in the attached workbook.

    I think if we could see that code we could advise on how it could be altered so that data is put in new workbooks instead of separate tabs.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    11-13-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA to save tabs as individual workbooks by tab's name

    Quote Originally Posted by Norie View Post
    There's no code in the attached workbook.

    I think if we could see that code we could advise on how it could be altered so that data is put in new workbooks instead of separate tabs.
    Please Login or Register  to view this content.
    Last edited by mfirpo; 12-02-2014 at 04:33 PM. Reason: Added code tags around code

  6. #6
    Registered User
    Join Date
    11-13-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA to save tabs as individual workbooks by tab's name

    Quote Originally Posted by Norie View Post
    There's no code in the attached workbook.

    I think if we could see that code we could advise on how it could be altered so that data is put in new workbooks instead of separate tabs.
    Norie,

    Please kep in minda that I have removed 2 columns from the spread sheet I provided. That is why vcol = 3 and title = "A1:F1" instead of vcol = 2 and title = "A1:D1"

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA to save tabs as individual workbooks by tab's name

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  8. #8
    Registered User
    Join Date
    11-13-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA to save tabs as individual workbooks by tab's name

    Thank you, Norie. I have corrected my post. I apologize. This is my first post.

+ 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. Breaking out tabs of a workbook and keeping the links into individual workbooks
    By ozne99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2012, 03:02 PM
  2. [SOLVED] Save All Worksheets As Individual Workbooks In a Special Folder in PDF format
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-20-2012, 01:27 PM
  3. Replies: 3
    Last Post: 10-03-2010, 11:07 PM
  4. individual tabs for subtotaled data
    By Scott in forum Excel General
    Replies: 3
    Last Post: 07-30-2006, 11:00 AM
  5. Protect Individual Tabs Uniquely
    By rshirk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-21-2005, 08:36 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