Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2019, 12:27 PM
raphael75 raphael75 is offline Trying to change title property of images Windows 10 Trying to change title property of images Office 2016
Novice
Trying to change title property of images
 
Join Date: Jul 2019
Posts: 2
raphael75 is on a distinguished road
Default Trying to change title property of images

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?
Reply With Quote
 

Tags
image, phpword, title



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to change title property of images Change all images into text with counter Slamzor Drawing and Graphics 4 04-16-2018 07:46 AM
Trying to change title property of images How do I change the author title spacing in header above paragraph? Paulmoore Word 3 07-01-2015 01:19 AM
creating a new TITLE property from text already within document smndnm Word VBA 6 07-04-2014 08:27 PM
Remove title property from all files in a folder konopca Word VBA 2 12-04-2012 10:54 AM
Title: Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur CatMan PowerPoint 6 05-10-2012 10:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft