How to merge multiple images to PDF using Word Application Scope


How do I merge multiple images to PDF using Word Application Scope?

Thank you for your help!

What about this way instead


or have I misunderstood the question, are the images pdf files or gifs, tiffs jpgs etc?

The images are .png files. Some folders only have 1 image. Some folders have hundreds. The flow I have now can put a folder with a hundred images into 1 pdf but I cannot get it to do that and then also put together a pdf for a folder with only 1 image.

Apologies for the misunderstanding. I’ve tried it and it seems to work for one image for me by doing something as simple as this (no loops)


Seems strange that it can do it for 100’s but not one. It couldn’t be something to do with the scope could it - what about putting the Word Application Scope inside the For Each.

My apologies for the misunderstanding. Let me clarify, it can do it for 100 images OR 1 image but I cannot find a way for it to do both. !

It might have to do with my counter + 1 in the body of For Each image. I comment out the counter + 1 and it can handle the folders with 1 image but not the folder with multiple images.