+ Reply to Thread
Results 1 to 3 of 3

How to retain only text in a word document?

  1. #1
    Forum Contributor daksh1981's Avatar
    Join Date
    04-15-2009
    Location
    India
    MS-Off Ver
    2003 & 2007
    Posts
    110

    Unhappy How to retain only text in a word document?


    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.

  2. #2
    Registered User
    Join Date
    04-16-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: How to retain only text in a word document?

    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.

    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
    I hope this will work. Do let me know if you need any further assistance.

    Ram

  3. #3
    Registered User
    Join Date
    04-16-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: How to retain only text in a word document?

    Hi Daksh,

    If you want to do it manually in the word document.

    Follow the steps:

    Press 'Ctrl + H'
    Type '^#' in the Find what text box
    Do not type anything in the Replace with text box
    Click 'Replace All'
    I hope this will solve your problem. Do let me know if you need any further assistance.

    Ram

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1