Sub ALTtekens()
'
' ALTtekens Macro
' Macro opgenomen op 8-10-2005 door Loes
'
Dim Waarde As Integer
Dim MyChar
' tabelkop maken
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=1, NumColumns:= _
8, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
With Selection.Tables(1)
If .Style <> "Tabelraster" Then
.Style = "Tabelraster"
End If
.ApplyStyleHeadingRows = True
.ApplyStyleLastRow = True
.ApplyStyleFirstColumn = True
.ApplyStyleLastColumn = True
End With
Selection.TypeText Text:="ALT + getal"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="Arial"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="WebDings"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="Symbol"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="WingDings"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="WingDings2"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="WingDings3"
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:="MonotypeSorts"
' Cellen vullen
For Waarde = 30 To 999
MyChar = ChrW(Waarde)
Selection.MoveRight Unit:=wdCell
Selection.TypeText Text:=Waarde
Selection.MoveRight Unit:=wdCell
Selection.Font.Name = "Arial"
Selection.TypeText Text:=MyChar
Selection.MoveRight Unit:=wdCell
Selection.Font.Name = "Webdings"
Selection.TypeText Text:=MyChar
Selection.MoveRight Unit:=wdCell
Selection.Font.Name = "Symbol"
Selection.TypeText Text:=MyChar
Selection.MoveRight Unit:=wdCell
Selection.Font.Name = "Wingdings"
Selection.TypeText Text:=MyChar
Selection.MoveRight Unit:=wdCell
Selection.Font.Name = "Wingdings 2"
Selection.TypeText Text:=MyChar
Selection.MoveRight Unit:=wdCell
Selection.Font.Name = "Wingdings 3"
Selection.TypeText Text:=MyChar
Selection.MoveRight Unit:=wdCell
Selection.Font.Name = "Monotype Sorts"
Selection.TypeText Text:=MyChar
Next Waarde
' Eerste regel herhalen
Selection.Tables(1).Select
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.Rows.HeadingFormat = wdToggle
End Sub