Thread: [Solved] Find and Replace Macro
View Single Post
 
Old 03-10-2014, 09:25 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Where you see

Replacewhat:=ReplaceString, WholeWords:=True) (several places)

Use

Replacewhat:=ReplaceString, WholeWords:=True, MatchCase:=msoTrue)

The replace will only happen if the case is exactly the same.

There'a a typo in Shyams code BTW

Col should be Cols (2 places)
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote