I have 197 word documents that were generated by PHPWord. Each document has 6-7 images that were inserted by PHPWord. I created a VBA macro to loop through all the files and insert hyperlinks on the images and I'm also trying to set the Title property on each image to the same value as the link. I can set the hyperlinks with no issues. I get this error when trying to set the title:
The watch shows this error for the title property of each image:
If I try to get or set the Title property it gives error 445 (Object doesn't support this action). After a lot of troubleshooting, I learned that if I create a brand new word doc and go to insert>picture instead of dragging/dropping the image in, it will let me access the Title property. I suspect the way PHPWord is inserting the images is as if they were dragged/dropped.
Is there some way I can convert the images to be able to access the title property in VBA?