+ Reply to Thread
Results 1 to 6 of 6

VBA Split mutiltable to another sheet in new workbook

  1. #1
    Forum Contributor
    Join Date
    10-29-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    142

    VBA Split mutiltable to another sheet in new workbook

    Hi All,

    I have file DATA.xlsm with table in sheet(MAIN), table have 4 data items

    I want macro ro do that:
    1. Create new workbook with file name as cell(B1) in DATA.xlsm. For examble: 201709.xlsx
    2. For each data item add new sheet in 201709.xlsx and sheetname as the Item name, examble: sheet(mucdich)

    Plz see my file attack file, thanks in advanced./.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA Split mutiltable to another sheet in new workbook

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-29-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    142

    Re: VBA Split mutiltable to another sheet in new workbook

    Thanks Jindon, your code worked

    A small problem that if file name "201709.xlsx" already in this folder, I choosen "No replace it". The's a mistake this line:
    Please Login or Register  to view this content.
    The mesbox: Method Saveas of Object_workbook failed.

    How to Invisible mesbox when I choose "No replace it"

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA Split mutiltable to another sheet in new workbook

    If you want to replace it
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-29-2017
    Location
    US
    MS-Off Ver
    2013
    Posts
    142

    Re: VBA Split mutiltable to another sheet in new workbook

    Quote Originally Posted by jindon View Post
    If you want to replace it
    Please Login or Register  to view this content.
    THanks, this's perfect code.

    Could you explan some meanings of this code for me? I'm beginer with excel

    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA Split mutiltable to another sheet in new workbook

    Please Login or Register  to view this content.
    Do a step debug and read the msgbox that will show you the details.

+ 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] Split master list into multiple excel sheet in one workbook
    By mylai in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2017, 02:34 AM
  2. Split 1 sheet to many workbook with protect password in zip file
    By dtaphuong in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2016, 11:09 AM
  3. Split workbook into multiple files based on cell in each sheet
    By fiona.forde0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2016, 03:47 PM
  4. split BD wise data into individual workbook from master sheet
    By sinha.riteshabap in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-10-2014, 03:24 AM
  5. [SOLVED] VBA to data Split from column values as new workbook save into folder with dashboard sheet
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-08-2014, 02:03 AM
  6. Split Data Into Multiple Workbook Based On Column value with exisitng sheet
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2013, 09:23 AM
  7. [SOLVED] Split master sheet data to multiple sheets in same workbook
    By Apple Ling in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 10:39 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