Consulting

Results 1 to 2 of 2

Thread: Find issue with tracked changes

  1. #1
    VBAX Contributor
    Joined
    Jun 2014
    Posts
    107
    Location

    Find issue with tracked changes

    Well this issue got me again. Finally I remembered that the issue is with having the searched word being changed with revision history. I'm doing a simple find on a rng:
    Selection.range.find.execute FindText:=StrToFind
    . The value I'm searching on in the range has revision history which prevents it from finding what I want. Is there a way to make the vba .find ignore the revision history and only search on what is shown in the simple markup view?

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Depending on what you're trying to achieve, you might employ a custom UndoRecord, accepting or rejecting the revisions before doing your Find, then restoring the previous condition afterwards. Alternatively, you might rework your StrToFind expression so that it becomes a wildcard term that can accommodate revisions. You could even include the deleted revision text in your Find expression. You really haven't given us enough to work with.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Tags for this Thread

Posting Permissions

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