![É possível alterar a fonte do botão da faixa de opções do Outlook 2010?](https://rvso.com/image/1400015/%C3%89%20poss%C3%ADvel%20alterar%20a%20fonte%20do%20bot%C3%A3o%20da%20faixa%20de%20op%C3%A7%C3%B5es%20do%20Outlook%202010%3F.png)
É possível adicionar um botão à faixa de opções do Outlook 2010 que altere a fonte do texto destacado para “Courier New” e reduza o tamanho da fonte para 10 pontos? Não o documento inteiro, apenas o texto destacado.
Ter que clicar duas vezes em Fonte e duas vezes em Tamanho da fonte para fazer isso é agravante para meu túnel do carpo.
Responder1
usar uma macro funcionará, mas requer a ativação de macros sobre as quais o Outlook avisará.
http://msdn.microsoft.com/en-us/library/ee814736%28v=office.14%29.aspxmostra como habilitar o maros, criar uma macro e adicioná-la à faixa de opções.
https://stackoverflow.com/questions/20624331/vba-macro-to-highlight-selected-text-in-current-email-messagepossui código na resposta que realizará alterações no texto atualmente selecionado.
Para alterar a fonte para courier new, 10 pontos, negrito, preto, estou usando esta macro derivada do segundo link:
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