InlineShapes

D

DrEvil

Good day,
I'm trying to modify this vba code;

ActiveDocument.InlineShapes.AddPicture
"C:\AAOForms\signatures\amko.jpg",
LinkToFile:=False, SaveWithDocument:=True,
Range:=ActiveDocument.Bookmarks("Picture").Range

so that instead of using images from hard drive I can use images that are
saved as an OLE fields in my table. I also select and display one of the many
OLE images (signatures)on the form that uses the code above.

I was using this;
DoCmd.GoToControl "pic"
DoCmd.RunCommand acCmdCopy
..ActiveDocument.Bookmarks("picture").Select
..Selection.Paste

in office 97 but for some reason it doesn't not work in office 2003.

Thanks

Amir
 
D

DrEvil

correct, I'm trying to do this from Access to send image to word.
As for missing a reference in Word 2003, I wouldn't think that is the case
as there isn't any messages like that and to best of my knowledge every
single reference from office 97 was enabled in office 2003. Error that I got
when using bottom code was "5097: There is insufficient memory. Save the
document now" while same code works in office 97.
 
D

DrEvil

I have somewhat resolved this issue last night, I realized that error 5097
was happening after pasting signature image in to Word document not before,
so I just made the pasting signature function last thing that happened while
"merging" and trapped the error.
It works fine, although I'm still ticked off that I wasn't able to figure
out what the is the real issue.

Thanks for your input

Amir
 

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