Skip to content

Instantly share code, notes, and snippets.

@tombrad
Created February 6, 2013 23:48
Show Gist options
  • Save tombrad/4727007 to your computer and use it in GitHub Desktop.
Save tombrad/4727007 to your computer and use it in GitHub Desktop.
Curso VBA-7
Private Sub CommandButton1_Click()
With Selection
. Font.Size = Val(10)
. ParagraphFormat.LineSpacingRule = wdLineSpaceSingle
. TypeParagraph
. Font.Name = “arial black”
. ParagraphFormat.Alignment = wdAlignParagraphCenter
. TypeText Text:=vbTab & “Programa de Prueba”
. ParagraphFormat.Alignment = wdAlignParagraphLeft
. TypeParagraph
. TypeParagraph
. Font.Name = “Arial”
TypeText Text:=vbTab & “NOMBRE ” & vbTab & TextBox1.Text
TypeParagraph
TypeText Text:=vbTab & “DIRECCION” & vbTab & TextBox2.Text
. TypeParagraph
. TypeText Text:=vbTab & “TELEFONO ” & vbTab & TextBox3.Text
. TypeParagraph
. TypeParagraph
End With
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment