View Single Post
 
Old 08-13-2012, 04:16 AM
krishnaoptif krishnaoptif is offline Windows XP Office 2007
Novice
 
Join Date: May 2012
Posts: 23
krishnaoptif is on a distinguished road
Arrow how to know word number by VBA

Hi Experts,

Please find below my code.... it works for me but i want the words Count befor this replaced content..

Code:
 
                           With ThisDocument.Content.Find
                                .Text = Search2
                                .Replacement.Text = Replace1
                                .Replacement.Highlight = True
                                .Wrap = wdFindContinue
                                .Execute Replace:=wdReplaceOne
                            End With

Last edited by krishnaoptif; 08-13-2012 at 06:47 AM. Reason: need some changes
Reply With Quote