C
cris
I am trying to insert multiple pictures in the same time using
'Dialogs(wdDialogInsertPicture)' but it is just inserting the last
selected pictures.
Is there any way to insert all of the selected pictures.
Here is my code:
With Dialogs(wdDialogInsertPicture)
If .Display <> 0 Then
szPicName = .Name
Dim ils As Word.InlineShape
'insert the pic
Set ils = Selection.InlineShapes.AddPicture(FileName:= _
szPicName _
, LinkToFile:=False, SaveWithDocument:=True)
With ils
'change size and position
.Height = 56.15
.Width = 216#
' .Left = wdShapeRight 'Can't work!
End With
' ils..Range.ParagraphFormat.Alignment =
wdAlignParagraphRight
MsgBox PhotoFile
End If
End With
Thanks a lot,
Cris
'Dialogs(wdDialogInsertPicture)' but it is just inserting the last
selected pictures.
Is there any way to insert all of the selected pictures.
Here is my code:
With Dialogs(wdDialogInsertPicture)
If .Display <> 0 Then
szPicName = .Name
Dim ils As Word.InlineShape
'insert the pic
Set ils = Selection.InlineShapes.AddPicture(FileName:= _
szPicName _
, LinkToFile:=False, SaveWithDocument:=True)
With ils
'change size and position
.Height = 56.15
.Width = 216#
' .Left = wdShapeRight 'Can't work!
End With
' ils..Range.ParagraphFormat.Alignment =
wdAlignParagraphRight
MsgBox PhotoFile
End If
End With
Thanks a lot,
Cris