Image won't update

C

Christofer Dutz

Hi,

I have created a Word form and want to be able to let the user add an
image to the form. For this I added an Image-From-Field and a button.
If the user presses the button a FileChooser dialog opens and the user
can choose the image. It is then loaded using the folowing code:

Image1.Picture = LoadPicture(vrtSelectedItem)

This does it's work fine. Unfortunately the image is loaded into the
document and placed in the right spot, but I have to minimize Word and
make it big again or scrol to the next page and back to make it visible.
How can I prevent this and make Word update the Image right away?

Chris
 
G

Guest

Hi, Chris,

Have you tried the ScreenRefresh method? Pretty
straightforward -- but there's a good sample if you
search ScreenRefresh in Word VBA help.

Hope that's useful.

Best,
Stephanie Krieger
author of Microsoft Office Document Designer
email: MODD _ 2003 at msn dot com
blog: arouet.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top