PDA

View Full Version : How to use vba to copy an image from Windows Photo Viewer into Word



Judith
04-07-2015, 11:17 AM
Hello,

I am writing vba to replace a default image with an image from Windows Photo Viewer, and I can't figure out which object to use.

The behaviour for which I am trying to make a menu item is now done manually by the client by using Ctrl-C in the Photo Viewer and Ctrl-V in Word. However, Ctrl-C does *not* place the image onto the clipboard. (It can't be copied into paint or wordpad, for example.) Something else is happening, and I'd like to duplicate it with code.

As I read further, it might not be an object that I need. Maybe all I need is a way to find the physical path to where the image is stored by the Windows Photo Viewer. Once I have that I can replace my default image, no problem.

Does anyone have a suggestion?

Many thanks.

Judith