+ Reply to Thread
Results 1 to 4 of 4

Highlight numbers in word doc

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Highlight numbers in word doc

    Hi

    I am trying to automate the copying of Excel data into some Word docs. The body of the Word docs all start like this (below the title and date) and I need to past in the new performance figures every month:

    "The portfolio outperformed its benchmark in January, turning in a net performance of -3.27% (in US dollars), compared with its benchmark’s return of -2.97% (also in US dollars)."

    The problem I am having is that I can search for and select the % sign, but cannot expand the selection to all the numbers as the macro does not recognise it as a word and only highlights the % sign. Since the numbers can be negative and so include a minus sign I cannot use a character count as it can vary. Lastly, the spreadsheet I am copying from does not include a % sign so I will need to add that back in if pasted over.

    Here is the macro that I have got at the moment

    Please Login or Register  to view this content.
    Thanks in advance for any help with this
    Last edited by steve61; 06-17-2013 at 10:11 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,604

    Re: Highlight numbers in word doc

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  3. #3
    Registered User
    Join Date
    03-05-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Highlight numbers in word doc

    Apologies for that, hopefully in the right format now

  4. #4
    Registered User
    Join Date
    05-21-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Highlight numbers in word doc

    You can use Adobe 's tool to edit your PDF.

+ 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