View Single Post
 
Old 10-25-2014, 12:01 AM
rsrasc rsrasc is offline Windows 7 64bit Office 2010 64bit
Competent Performer
 
Join Date: Mar 2014
Location: Germany
Posts: 148
rsrasc is on a distinguished road
Default

Hi Macropod,

Not sure if I am the problem (surely I am) but I can't get it to work. Can you check the below code?

Thanks,


PHP Code:
Sub macroDeletingDoubleMCQ()
'
lMacroDeletingDoubleMCQ
'
'
    
Selection.Find.ClearFormatting
    Selection
.Find.Replacement.ClearFormatting
    With Selection
.Find
        
.Text "Question #[0-9]@ \(ACCCC*\)^13)\1"
        
.Replacement.Text "\1"
        
.Forward True
        
.Wrap wdFindContinue
        
.Format False
        
.MatchCase False
        
.MatchWholeWord False
        
.MatchAllWordForms False
        
.MatchSoundsLike False
        
.MatchWildcards True
    End With
    Selection
.Find.Execute Replace:=wdReplaceAll
End Sub 
Reply With Quote