![¿Es posible el botón de cinta de Outlook 2010 para cambiar la fuente?](https://rvso.com/image/1400015/%C2%BFEs%20posible%20el%20bot%C3%B3n%20de%20cinta%20de%20Outlook%202010%20para%20cambiar%20la%20fuente%3F.png)
¿Es posible agregar un botón a la cinta de Outlook 2010 que cambie la fuente del texto resaltado a "Courier New" y reduzca el tamaño de fuente a 10 puntos? No todo el documento, sólo el texto resaltado.
Tener que hacer clic dos veces en Fuente y dos veces en Tamaño de fuente para hacer esto agrava mi túnel carpiano.
Respuesta1
el uso de una macro funcionará, pero requiere habilitar macros sobre las cuales Outlook advertirá.
http://msdn.microsoft.com/en-us/library/ee814736%28v=office.14%29.aspxmuestra cómo habilitar maros, crear una macro y agregarla a la cinta.
https://stackoverflow.com/questions/20624331/vba-macro-to-highlight-selected-text-in-current-email-messagetiene un código en la respuesta que realizará cambios en el texto seleccionado actualmente.
Para cambiar la fuente a courier new, 10 puntos, negrita, negro, estoy usando esta macro derivada del segundo enlace:
Sub ChangeSelectedFontToCode()
Dim msg As Outlook.MailItem
Dim insp As Outlook.Inspector
Set insp = Application.ActiveInspector
If insp.CurrentItem.Class = olMail Then
Set msg = insp.CurrentItem
If insp.EditorType = olEditorHTML Then ' outlook 2003
Set hed = msg.GetInspector.HTMLEditor
Set rng = hed.Selection.createRange
rng.pasteHTML "<b><font style='color: black; font-size: 10pt; font-family:Courier New;'>" & rng.Text & "</font></b>"
End If
If insp.EditorType = olEditorWord Then ' outlook 2013
Set hed = msg.GetInspector.WordEditor
Set appWord = hed.Application
Set rng = appWord.Selection
rng.Font.Size = 10
rng.Font.Color = wdColorBlack
rng.Font.Bold = True
rng.Font.Name = "Courier New"
rng.Collapse Direction:=wdCollapseEnd
End If
End If
Set appWord = Nothing
Set insp = Nothing
Set rng = Nothing
Set hed = Nothing
Set msg = Nothing
End Sub