AutoText image as UserForm picture

William
StarLounger
Posts: 79
Joined: 08 Feb 2010, 21:48
Location: Wellington, New Zealand

AutoText image as UserForm picture

Post by William »

Does anyone know if it's possible (using Word 2003) to include an AutoText image as a picture in a VBA UserForm at runtime?

I've done this in the past using a WordBasic custom dialog box, but haven't been able to do it with a UserForm. :sad:

User avatar
HansV
Administrator
Posts: 78493
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: AutoText image as UserForm picture

Post by HansV »

No, that is not possible - the old custom dialog boxes were tightly integrated with Word, but userforms are a much more generic feature (they are available in Excel, PowerPoint and Outlook too). The Image control on a userform must show an external image file.
Best wishes,
Hans

William
StarLounger
Posts: 79
Joined: 08 Feb 2010, 21:48
Location: Wellington, New Zealand

Re: AutoText image as UserForm picture

Post by William »

Hans

Thanks for the confirmation. This must be what they call progress. :grin:

For my present purposes I will revert to WordBasic. It's certainly easier distributing a template without having to also distribute image files and then hope that they're stored and retained in the correct location.