Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-26-2021, 01:18 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 Split Multiple Word Documents by Bookmark


Hello all,


I'm trying to split multiple Word documents into separate documents using the document bookmarks. I found a previously posted macro that works great for doing this. However, I'm running into an issue with the code as it relates to my project.



I'm trying to have the VBA loop across ~300 documents where all have the same bookmark names and are all in the same folder. It looks like the code loops across documents based on the "StrNm = Dir()" line. However, the newly saved folders are based on bookmark names, which are the same across all documents. It looks like this is causing an error and the marco to stop after the first document.



I want to adjust the code in two ways to (1) deal with the bookmark naming issue and (b) create new documents within the same folder (aka not create new folders for each new document. For example, the new documents should be roughly "[docname]_[bookmarkname].doc". How might I accomplish this?



Thanks in advance for any assistance someone can provide!
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:59 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