Application SendKeys

D

Delanoval

Help!

I am trying to create a Macro, that records the command "
Insert + Picture + From File", and stops right there.

The problem is that with the Macro Recorder, when I get to
the correct screen, I cannot stop the Macro Recorder. If
I continue the Macro does records the keyboard strokes.

I know it can be done with the SendKeys Command, but I can
get the right code.

This is on a Word 200o document. Any help is greatly
appreciated.

Thanks
 
P

Peter Hewett

Hi Delanoval

This is all you need:

Public Sub InsertMyPicture()
Dialogs(wdDialogInsertPicture).Show
End Sub

HTH + Cheers - Peter
 
R

richardall

What would need to be done to have a frame or 1 X 1 table to hold the
location and size fo the picutre?

I need to place a picture in the same location and the same size (scales
orginal) on a form.

How would I trigger the macro?
What kind of field would I use?
Is there a way to have it call the insert picutre dialog box and then
automatically scale the image while it populates the location?
 

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