Novio
01-22-2013, 01:51 AM
Hello,
I have a question.
I want to please with loop a Header and macrobutton.
The output should be like:
header 1
"Picture Insert"
header 2
etc
I have this code:
Sub test()
index = 0
Do Until index = 5
index = index + 1
Selection.Style = "Header 1"
Selection.Text = "Header 1"
Selection.TypeParagraph
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"MACROBUTTON StartProcess ""Insert Picture"" ", PreserveFormatting:=False
Loop
End Sub
Please help
Kind regards
Mark
I have a question.
I want to please with loop a Header and macrobutton.
The output should be like:
header 1
"Picture Insert"
header 2
etc
I have this code:
Sub test()
index = 0
Do Until index = 5
index = index + 1
Selection.Style = "Header 1"
Selection.Text = "Header 1"
Selection.TypeParagraph
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"MACROBUTTON StartProcess ""Insert Picture"" ", PreserveFormatting:=False
Loop
End Sub
Please help
Kind regards
Mark