Userform image

J

Jack

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.
 
D

David Horowitz

Jack,
I often use Ctrl-Alt-PrintScreen to copy an image of the current window to
the clipboard, then you could conceivably paste that into a Picture image on
the UserForm. So the trick would be to automate the Ctrl-Alt-PrintScreen. I
thought to use SendKeys, but the docs specifically say you can't send
PrintScreen using SendKeys. I'm not sure where that leaves you, maybe going
down into the Windows API or automating a 3rd party utility like SnagIt.
Maybe this guy's sutff will help:
www.developer.com/lang/other/article.php/615101
 
K

Karl E. Peterson

David said:
I often use Ctrl-Alt-PrintScreen to copy an image of the current window to
the clipboard, then you could conceivably paste that into a Picture image on
the UserForm. So the trick would be to automate the Ctrl-Alt-PrintScreen. I
thought to use SendKeys, but the docs specifically say you can't send
PrintScreen using SendKeys. I'm not sure where that leaves you, maybe going
down into the Windows API or automating a 3rd party utility like SnagIt.
Maybe this guy's sutff will help:
www.developer.com/lang/other/article.php/615101

How To Capture and Print the Screen, a Form, or Any Window
http://support.microsoft.com/kb/161299
 
Top