CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2010
    Posts
    1

    Thumbs up MS Word Macro help please!

    I'm a very basic VB user and it has been quite a few years since using it, so I could really use some expert advice.

    I am trying to execute a macro that will search word files to format dates that have been written with "th", "nd" or "st" extensions (June 9th, 2010 should equal June 9, 2010. I would also like to verify that it is a date and not a ranking (The 2nd best team should not be replaced).

    Any and all advice is greatly appreciated,

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: MS Word Macro help please!

    Record a MACRO in Word, and see how it works, in the EDITOR.

    You could search for "nd, " and eliminate 2nd best
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured