Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2019, 07:15 AM
gmaxey gmaxey is offline Trying to change title property of images Windows 10 Trying to change title property of images Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Why don't you post your code and one of the documents.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #2  
Old 07-13-2019, 08:20 PM
Guessed's Avatar
Guessed Guessed is offline Trying to change title property of images Windows 10 Trying to change title property of images Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I think you are probably looking for the AlternativeText property. This shows up in the GUI as "Alt Text"
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 07-16-2019, 06:12 AM
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

It turned out the issue was PHPWord was saving the documents in Word2007 format in compatibility mode. I had to modify the macro to save the documents in docx format and remove compatibility mode, and then I was able to modify the title attribute.

Code:
wdDoc.SaveAs2 FileName:=path & fname, FileFormat:=wdFormatDocumentDefault, CompatibilityMode:=wdWord2013
then

Code:
For Each sh In wdDoc.ActiveWindow.Document.InlineShapes

sh.Title = url

Next sh
That fixed it.
Reply With Quote
Reply

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 12:58 PM.


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