View Single Post
  #9  
Old March 4th 07, 12:23 AM posted to microsoft.public.outlook.program_vba
LesG
external usenet poster
 
Posts: 9
Default Macro works in Word 2007, but not in Outlook 2007

Thanks Howard!
You were a great help providing the code as I have no experience with macro
code, I only used a "recorder" to create the one in question.
I copied the code you wrote, replacing the original, but I get a Run-time
error '438'
Regards; Les

"Howard Kaikow" wrote:

With wdSelection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "aa"
.Replacement.Text = "รก"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute
End With
--
http://www.standards.com/; See Howard Kaikow's web site.



Ads