Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Deleted text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dsc - 04 Nov 2004 13:18 GMT
Is there any way to test if text is market as deleted by track changes when
doing a "replace all" from a VBA macro?

Thanks for any assistance.
Helmut Weber - 06 Nov 2004 15:13 GMT
Hi,
how about this one?
Public Function HasDeletions(oDcm As Document) As Boolean
Dim oRvs As Revision
HasDeletions = False
If oDcm.Revisions.Count > 0 Then
  For Each oRvs In oDcm.Revisions
     If oRvs.Type = wdRevisionDelete Then
        HasDeletions = True
        Exit Function
     End If
  Next
End If
End Function
'---
Sub Test651()
MsgBox HasDeletions(ActiveDocument)
End Sub
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.