Ik probeer met een Word 2007 macro plaatjes in de linkerkolom van een tabel te zetten.
Daarbij moeten de plaatjes verkleind worden, maar dat verkleinen gebeurt niet. Wat doe ik fout?
De code die ik tot nu toe heb:
Daarbij moeten de plaatjes verkleind worden, maar dat verkleinen gebeurt niet. Wat doe ik fout?
De code die ik tot nu toe heb:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| ' Maak tabel
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=5, NumColumns:= _
2, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
' Zet plaatjes en beschrijving in de tabel
For i = 1 To 5
Selection.InlineShapes.AddPicture FileName:= _
"C:\plaatje\" & i, LinkToFile:=False, SaveWithDocument:=True
With Selection.InlineShapes
.ScaleHeight 5, msoFalse, msoScaleFromTopLeft
.ScaleWidth 5, msoFalse, msoScaleFromTopLeft
End With
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText ("beschrijving plaatje")
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Next |