Adding graphic image to array

H

HJ

Don't know why this is difficult but I'm trying to add a picture that
I have selected in a document and place it in an array (declared as a
variant).

But when I retrieve the picture out of the array later on, it just
displays as a small square instead of the image.

What I want to do is place about 10 scanned signatures into an array
and then have the user select which signature is to be inserted and
have the macro retrieve the image out of the array.

Should I declare the array as something other than variant?

Thanks for any pointers.

Helen
 
P

Perry

Why not store the scanned pictures in a general accessible
network location and insert the picture using it's full filename:

ActiveDocument.InlineShapes.AddPicture _
(FileName:=FullName.jpg, Range:=Selection.Range)

Using above statement, you can utilize a lightweight String typed array
to store the files/filenames)

Krgrds,
Perry
 

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