Hi to all…
I need your help in removing all numeric values from a word document. This word document can have n number of text, paragraphs, pages etc.
I need to retain only text in the document, no numeric value is required.
I hope I am able to explain my problem.
Any help would be a great help for me.
I am still a learner.
Hi Daksh,
You have to write a macro for that. I hope you know the process to create an Add-in file, if so just copy the following code and execute it.
I hope this will work. Do let me know if you need any further assistance.Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^#"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Ram
Hi Daksh,
If you want to do it manually in the word document.
Follow the steps:
I hope this will solve your problem. Do let me know if you need any further assistance.Press 'Ctrl + H'
Type '^#' in the Find what text box
Do not type anything in the Replace with text box
Click 'Replace All'
Ram
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks