gmayor, I'm sorry I wasn't able to get back to you sooner. I have recently started this project back up and I was able to make it work. I had a few errors in my bookmarks. Thank you!
I'm messing around with this a little more and I'm wondering, can I name the PDF by one of the headers within the bookmark?
My understand of the code is that it:
1. Creates a path.
2. Looks for a bookmark that does not have hidden text.
3. Creates that bookmark into a PDF and names it.
4. Repeats until all non-hidden text bookmarks found.
I'm thinking that if I wanted to name the file by using a heading style I'd have to plug it in within step 3. More specifically, replace oBM.Name with something that refers to a heading style .Name. However, I can't figure out what that language would be. I've tried Headerstyle and Styles but I haven't gotten it to work.
Any push in the right direction would be greatly appreciated!
|