Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert picture

Status
Not open for further replies.

JanTore

Technical User
Jun 9, 2001
34
NO
How can I insert a picture in a Word template using a VBA form.
What I'm trying to do is for the user to browse for a picture, select it, add some description and insert it into the document with a preset picture size. And if nessesary repeat the operation for several pictures in the document
Ive used this for the picture description:
Private Sub CommandButton1_Click()
ActiveDocument.Tables(4).Columns(1).Cells(2).Range.Text = Txt12
End sub



JanTore
 
Ive used this to insert the picture.

Private Sub CommandButton1_Click()
Selection.EndKey Unit:=wdStory
Dialogs(wdDialogInsertPicture).Show
End Sub

But how can i select it to use the wdDialogFormatPicture, or is there another way to format the pictures to a specified height and width?

JanTore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top