I am creating a dynamic userform. Is there anyway I can do to get a picture
from the current(active) word document and insert it into the userform? If it
is possible, how can do it? If it is impossible, is there anyway I can work
around?
Thank you for your help.
Someone else may prove me wrong, but I don't think it's possible. The help topic
for the Image control's .Picture property says:
"While designing a form, you can use the control's property page to assign a
bitmap to the Picture property. While running a form, you must use the
LoadPicture function to assign a bitmap to Picture."
The syntax for the LoadPicture function says that it requires a parameter which
is "The full path to a picture file" -- that is, the picture must reside in a
disk file, not embedded in a document.
The only method I can suggest is to arrange your setup so the pictures in the
document are linked from disk files (using IncludePicture fields), so the
userform can extract the file path from the field for use in the LoadPicture
function.