Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 08-02-2021, 06:40 PM
asm1234 asm1234 is offline Split Multiple Word Documents by Bookmark Windows 10 Split Multiple Word Documents by Bookmark Office 2019
Novice
Split Multiple Word Documents by Bookmark
 
Join Date: Jul 2021
Posts: 3
asm1234 is on a distinguished road
Default

Yes, all files are in .doc format (I converted them with some other VBA code). Again, the ONLY issue I am dealing with is the bookmarks have the same names across files.


Here is what's happening: when I run the code, it creates folders with the files split based on the bookmarks in it for the *FIRST* document. Then, it gives me an error and cannot create folders with files in it it for the second document because said folders/files already exist. As mentioned, all the bookmarks have the same name and that's what used to name the folders/files.


I suspect all I need is an additional line of code to adjust the name of the folders/files. For example, it would work if the saved files end up being "[originalfilename]_[bookmarkname].doc" rather than what it is right now, "[bookmarkname].doc". That would solve the issue. However, I couldn't get anything like that to work with my code, so I'm reaching out on here.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Split Multiple Word Documents by Bookmark VBA to split Word document into multiple documents Shelley Lou Word VBA 1 02-24-2021 07:11 AM
Split Multiple Word Documents by Bookmark split word document based on bookmarks with each new document title of the bookmark megatronixs Word VBA 9 09-05-2020 02:29 PM
Split Multiple Word Documents by Bookmark Macro to Split Documents Gingerbreadgrl Word VBA 4 09-02-2019 03:18 PM
Split Multiple Word Documents by Bookmark Mail Merge - split merged documents and rename each split document based on text in header FuriousD Word VBA 1 05-12-2019 04:06 AM
Split one Word Document into Multiple PDFs VieraOfficeUser Word 3 07-30-2014 10:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft