B
baha
Hi Everyone,
I have a following code for adding bmp pictures which are named from
1 to 250, into activedocument shapes which are named from image1 to
image250. It seems like I am doing something wrong.Any help?
My code is
Private Sub CommandButton1_Click()
Dim i As Variant
For i = 1 To 250
ActiveDocument.Shapes("Image" & i).OLEFormat.Object.Object.Picture =
LoadPicture(ThisDocument.Path & "\Pictures\" & i & ".BMP")
Next i
End Sub
Thanks in advance
Baha
I have a following code for adding bmp pictures which are named from
1 to 250, into activedocument shapes which are named from image1 to
image250. It seems like I am doing something wrong.Any help?
My code is
Private Sub CommandButton1_Click()
Dim i As Variant
For i = 1 To 250
ActiveDocument.Shapes("Image" & i).OLEFormat.Object.Object.Picture =
LoadPicture(ThisDocument.Path & "\Pictures\" & i & ".BMP")
Next i
End Sub
Thanks in advance
Baha