stefanhovens
Gebruiker
- Lid geworden
- 24 nov 2009
- Berichten
- 14
Ik wil graag een afbeelding in word plaatsen en afmetingen hiervan aanpassen.
Het eerste gedeelte lukt me, maar het tweede niet. Van te voren zorg ik ervoor dat je juiste afbeelding wordt ingevoegd uit een bestand middels een if then
Dim PictureS As String
If ThisDocument.lblDSassy.Caption = "" Then
PictureS = ThisDocument.Path & "\Pictures\" & ThisDocument.lblSAssy.Caption & ".jpg"
Else
PictureS = ThisDocument.Path & "\Pictures\" & ThisDocument.lblDSassy.Caption & ".jpg"
End If
With ActiveDocument.Tables(4)
.Cell(Row:=3, Column:=2).Range.InlineShapes.AddPicture PictureS
End With
Het eerste gedeelte lukt me, maar het tweede niet. Van te voren zorg ik ervoor dat je juiste afbeelding wordt ingevoegd uit een bestand middels een if then
Dim PictureS As String
If ThisDocument.lblDSassy.Caption = "" Then
PictureS = ThisDocument.Path & "\Pictures\" & ThisDocument.lblSAssy.Caption & ".jpg"
Else
PictureS = ThisDocument.Path & "\Pictures\" & ThisDocument.lblDSassy.Caption & ".jpg"
End If
With ActiveDocument.Tables(4)
.Cell(Row:=3, Column:=2).Range.InlineShapes.AddPicture PictureS
End With