Thanks. Will try that.
But how about putting the image where it should be (x- and y-position)? I tested this by manualy adding an image and * it moves to the top of the Word document and * Word shows 10% only because it goes underneath the text. So I need to edit the image-settings;
- having the text go around it instead of over it/ under it
- move it a few centimeters lower
- change the size so it is 15 cm wide, auto high
How do i script that in the macro after the upload? Or where can I find this info?
Something like this?
strFileName.size.width = 15cm
strFileName.size.height = auto
strFileName.align = left
strFileName.X = 2.5
strFileName.Y = 6.75
Main Topics
Browse All Topics





by: bruintjePosted on 2006-02-24 at 02:58:20ID: 16037376
Hello dutchfoxer,
ame, 1)
ture Anchor:=Selection.Range, _
MacrosVBA/ WordBasicC ommands.ht m
you could try something like
----------
Code
Sub InsertUserImage()
Dim strFileName As String
'get file from user
With Dialogs(wdDialogFileOpen)
If .Display Then
strFileName = WordBasic.FilenameInfo$(.N
Else
MsgBox "No file selected"
Exit Sub
End If
End With
'insert file
ThisDocument.Shapes.AddPic
FileName:=strFileName, _
LinkToFile:=False, _
SaveWithDocument:=True
End Sub
----------
for a background on the wordbasic function FileNameInfo$() used
----------
Hyperlink[s]
http://word.mvps.org/FAQs/
----------
hope this helps a bit
bruintje