+ Reply to Thread
Results 1 to 5 of 5

How to save multiple files into macro enabled workbooks format?

  1. #1
    Registered User
    Join Date
    11-01-2020
    Location
    London, uk
    MS-Off Ver
    365
    Posts
    87

    How to save multiple files into macro enabled workbooks format?

    I want to save multiple files into macroenabled workbook instead of doing a save as 1 by 1 step. How do I do it? ChatGPT gave me this macro to do it but it doesn't work

    Please Login or Register  to view this content.
    Last edited by skhande2; 06-05-2023 at 01:56 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,858

    Re: How to save multiple files into macro enabled workbooks format?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. 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, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then 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

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-01-2020
    Location
    London, uk
    MS-Off Ver
    365
    Posts
    87

    Re: How to save multiple files into macro enabled workbooks format?

    Done. Thank you

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,564

    Re: How to save multiple files into macro enabled workbooks format?

    No use re-inventing the wheel. Have a look at the attachment in Post #3. If you download it you'll see that you can convert to several different types by choosing from the dropdown.
    https://www.excelforum.com/excel-pro...into-xlsx.html
    Experience trumps academics every day of the week and twice on Sunday.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,564

    Re: How to save multiple files into macro enabled workbooks format?

    Or you can try this also.
    You have to add a reference to the Microsoft Scripting Runtime in Tools->References.
    Please Login or Register  to view this content.
    BTW, this part of the code, "Len(fileName) - 4)", in Post #1 does not work for .xlsx which is 5
    Last edited by jolivanes; 06-05-2023 at 03:40 PM.

+ 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] Save 1st worksheet of multiple workbooks into separate pdf files
    By DonkeyKong222 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2022, 12:09 PM
  2. Workbooks.Open freezes excel...Macro-enabled and not Macro-enabled :(
    By IndesliciveMelon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2018, 05:48 PM
  3. [SOLVED] Forcing Macro-enabled files and file name format on a Mac in Workbook_BeforeSave
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2016, 12:38 PM
  4. Macro to open multiple files, remove header and save multiple files in a new format
    By twocircles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2014, 05:24 PM
  5. [SOLVED] Why not always save a template file in the Macro-Enabled format?
    By alice2011 in forum Excel General
    Replies: 2
    Last Post: 01-17-2014, 06:15 AM
  6. Replies: 0
    Last Post: 08-07-2012, 02:19 PM
  7. Replies: 0
    Last Post: 03-15-2012, 04:13 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