Está en la página 1de 1

::Cambiar formato

Sub for1()
' Cambiar tama�o de la fuente
Selection.Font.Size = 20
' Cambiar el tipo de fuente
Selection.Font.Name = "Britannic Bold"
' Poner texto en negrita
Selection.Font.Bold = wdToggle
' Poner texto en italic
Selection.Font.Italic = wdToggle
' Darle el color rojo
Selection.Font.Color = wdColorRed
End Sub

::Insertar texto

Sub SustT()
Selection.TypeText Text:="este texto"
End Sub

::Encerrar texto entre par�ntesis

Sub Parentesis()
Selection.InsertAfter ")"
Selection.InsertBefore "("
End Sub

::Ventana de alerta con la fecha de hoy

Sub Fecha()
MsgBox "Hoy es: " & Format(Now(), "dd-mm-yyyy")
End Sub

::Vista previa de impresi�n al 100%

Sub ImpPrevia()
ActiveDocument.PrintPreview
ActiveWindow.View.Zoom = 100
End Sub

::Encerrar texto entre comillas

Sub Comillas()
Selection.InsertAfter """"
Selection.InsertBefore """"
End Sub

También podría gustarte