Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2023, 10:06 AM
MartinGM MartinGM is offline Change code now that Alt Text has changed Windows 11 Change code now that Alt Text has changed Office 2021
Competent Performer
Change code now that Alt Text has changed
 
Join Date: May 2023
Location: England
Posts: 118
MartinGM is on a distinguished road
Default

Correction - that isn't what I wanted to do - I am not finding it easy to describe, sorry about that.

This is what I am trying to do, all in VBA

1. I set the path of the folder from which I want to insert the picture. this works fine
2. I open the dialog, pointing at the folder. this works fine


3. I click on the picture I want to insert, and it is inserted. this works fine
4. This is the bit that doesn't work any more - I want to capture the filename of the picture I have just inserted. I used to use the AltText property which contained the filename, but that is no longer imported with the picture.

How can I find the filename of the picture I have clicked and inserted ?

Thanks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change code now that Alt Text has changed AutoOpen code to change date code to date text Legal Learning Center Word VBA 6 02-22-2020 02:24 PM
Change code now that Alt Text has changed Default opening changed from 2010 to 2016 - How to change it back on Win10? stimu Excel 5 09-28-2017 11:45 AM
Change code now that Alt Text has changed VBA Code to search for field codes with certain text before the Field code and to change style welcometocandyland Word VBA 4 02-08-2017 06:53 PM
Change code now that Alt Text has changed Code that will run when a cells value is changed. DonJohns1 Excel Programming 2 04-15-2015 10:48 AM
Need to delete 'field code changed' in my reference list leb Word 4 05-04-2013 12:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:40 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