Thread: [Solved] Splitting Out PDFs
View Single Post
 
Old 11-29-2012, 10:31 AM
4mysanity 4mysanity is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Nov 2012
Posts: 16
4mysanity is on a distinguished road
Default Splitting Out PDFs

test.docx

Hello,

In my word document, I have paragraphs, each paragraph has a number, ie: the first paragraph is labelled 001, the second paragraph is labelled 002 and so on.

What I want to do is have my VBA code in word match those paragraph numbers to an image with the same number, then have word automatically save the image & paragraph as one .pdf. So for example, the code would match paragraph 001 with image 001 and save it as 001.pdf

Here is an example of what I got so far, (see attachment). The path to the images is K:\test\images\ the images are just saved on my hard drive they aren't in the word document

Im just a little unsure as to where to go from here, I know how to get Word to save as a .pdf but I dont know how to get it to distinguish between the different paragraphs. Any help would be great!

Thanks!
Reply With Quote