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.
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.
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.)
Done. Thank you
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.
Or you can try this also.
You have to add a reference to the Microsoft Scripting Runtime in Tools->References.
BTW, this part of the code, "Len(fileName) - 4)", in Post #1 does not work for .xlsx which is 5Please Login or Register to view this content.
Last edited by jolivanes; 06-05-2023 at 03:40 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks