Ich versuche, ein Makro in VBA zu erstellen, was der Titel sagt (ich denke, es ist ziemlich klar). Ich weiß nicht, welche Funktionen zu verwenden sind. DieseMakro in VBA, Fettschrift> * Fettschrift *; Kursiv> _italic_ (WhatsApp Zweck)
ist das, was ich suche (teilweise):
Sub FormatForWhatsapp()
With Selection.Find
.ClearFormatting
.Font.Bold = True
.Text = ""
.Replacement.Text = "*^&*"
.Forward = True
.Wrap = wdFindContinue
.Format = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.ClearFormatting
.Font.Italic = True
.Text = ""
.Replacement.Text = "_^&_"
.Forward = True
.Wrap = wdFindContinue
.Format = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Mein Problem ist 1) Ich brauche einen nativen Code und nicht das Büro Funktion „Suchen“. 2) Ich brauche auch einen Code, der die umgekehrte Aktion zum Neuformatieren ausführt.
Vielen Dank im Voraus
"Ich denke, es ist ziemlich klar" - Nö. –
Was ist nicht klar? –
Was genau ist ein "nativer Code"? –