Document Image Display in Userform Image Control
Hello, I have a userform with an image control, 2 command buttons, and textbox. What I am trying to accomplish is a mechanism by which the user can easily go through all the images in a document, one by one, and view any existing Alternative Text that has been added to that image, modify/replace it, delete it, add new, etc.
When the user clicks on the first command button (NEXT IMAGE) the program finds the first image in the document and displays it in the userform's image control. (Is this possible?)
Any existing alternative text for that image is displayed in the textbox. The user then modifies the text in the textbox as desired and clicks on the 2nd command button (APPLY ALT TEXT) and the text is applied as alternative text to the image. Or, the user clicks clicks the NEXT IMAGE button, the second image is then displayed in the userform image control and the text box is updated to reflect that image's alt. text.
I have not been able to figure out how to get an inlineshape to display in a userform image control.
I believe I can use ActiveDocument.Selection.Shapes(1).AlternativeText = textbox.txt to assign the textbox contents.
If anyone can give me some advice on the image control issue I would be very appreciative.
Doug