Private Sub combobox1_dropbuttonclick()
ComboBox1.List = Array("Adición", "Modificación", "Supresión")
End Sub
Private Sub CommandButton1_Click()
With Selection
Selection.EndKey Unit:=wdStory
End With
With Selection.Font
.Name = "Arial"
.Size = 10
.Bold = True
End With
With Selection
Selection.TypeText Text:="Enmienda n.º "
End With
With Selection
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"SEQ =a1+1\\*MERGEFORMAT", PreserveFormatting:=True
End With
With Selection.Font
.Bold = False
End With
With Selection
Selection.TypeParagraph
Selection.TypeText Text:="Enmienda de: "
End With
With ComboBox1.List
ComboBox1.AddItem "Adición"
ComboBox1.AddItem "Modificación"
ComboBox1.AddItem "Supresión"
End With
With Selection
Selection.TypeParagraph
Selection.TypeText Text:="Artículo: "
Selection.TypeText Text:=TextBox1.Text
Selection.TypeParagraph
Selection.TypeText Text:="Texto: "
Selection.TypeText Text:=TextBox2.Text
Selection.TypeParagraph
Selection.TypeText Text:="Justificación: "
Selection.TypeText Text:=TextBox3.Text
Selection.TypeParagraph
Selection.InsertBreak Type:=wdPageBreak
Selection.WholeStory
Selection.Fields.Update
Selection.EndKey Unit:=wdStory
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
End With
End Sub
Private Sub CommandButton2_Click()
With Selection.Font
.Name = "Arial"
.Size = 10
.Bold = True
End With
With Selection
Selection.InsertBreak Type:=wdPageBreak
Selection.TypeText Text:="Enmienda n.º "
End With
With Selection
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"SEQ =a1+1\\*MERGEFORMAT", PreserveFormatting:=True
End With
With Selection.Font
.Bold = False
End With
With Selection
Selection.TypeParagraph
Selection.TypeText Text:="Enmienda de: "
Selection.TypeParagraph
Selection.TypeText Text:="Artículo: "
Selection.TypeText Text:=TextBox1.Text
Selection.TypeParagraph
Selection.TypeText Text:="Texto: "
Selection.TypeText Text:=TextBox2.Text
Selection.TypeParagraph
Selection.TypeText Text:="Justificación: "
Selection.TypeText Text:=TextBox3.Text
Selection.TypeParagraph
End With
End Sub
Private Sub CommandButton3_Click()
Selection.WholeStory
Selection.Fields.Update
Selection.MoveDown Unit:=wdLine, Count:=1
End Sub
Private Sub CommandButton4_Click()
End
End Sub
Private Sub TextBox2_Change()
End Sub
Private Sub UserForm_Click()
End Sub