Post by Robert M. Franz (RMF)Ein 6-maliges Suchen/Ersetzen ist sicher möglich, und Makros zum
Thema Suchen/Ersetzen findest du z.B. in den .vba-Gruppen.
Allerdings würde ich erstmal an anderer Stelle ansetzen und
versuchen, ob man das Mailtools deines Gegenübers nicht dazu bewegen
kann, die Umlaute korrekt anzuzeigen (sofern dein Mailtool die
Kodierung korrekt erledigt -- ist halt auch eine Wissenschaft für
sich :-)).
Gruss
Robert
--
Hallo Robert,
für so ein einzelnes Makro extra eine NG für VBA einrichten, ich weis
nicht? Zumal ich mich noch nie mit VBA beschäftigt habe.
Ich hatte schon mal ein Makro erstellt, aber da kommt nur Mist raus,
siehe nachstehend.
Gruß,
Dag
------------------------------
vorher:
Ü
ü
Ä
ä
Ö
ö
ß
Nachher, nach Makro-Durchlauf:
UE
Ue
AE
Ae
OE
Oe
ss
Hier nachstehend das Makro. Vielleicht weis jemand, was falsch daran
ist.
Sub Umlaute()
'
' Umlaute Makro
' Makro aufgezeichnet am 21.04.2006 von membro
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "Ä"
.Replacement.Text = "Ae"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "ä"
.Replacement.Text = "ae"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "Ö"
.Replacement.Text = "Oe"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "ö"
.Replacement.Text = "oe"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "Ü"
.Replacement.Text = "Ue"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "ü"
.Replacement.Text = "ue"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "ß"
.Replacement.Text = "ss"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ß"
.Replacement.Text = "ss"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
End Sub