View Single Post
 
Old 08-02-2021, 06:40 PM
asm1234 asm1234 is offline Windows 10 Office 2019
Novice
 
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