-
What I am trying to do
Hi,
What I am trying to do is programmatically undo the AutoFormat-ing that is done when the property DocumentMap = True for a given document.
I'm thinking that the following code snippet would do the trick:
[vba]
If (ActiveDocument.ActiveWindow.DocumentMap = True) Then
ActiveDocument.Undo
End If
[/vba]
Is the last line in the above If-block the correct statement to issue to Undo AutoFormat ?
And a related question: I understand that Command-Z pressed repeatedly, will go to the 3 most recently edited locations in the ActiveDocument. What object (ie. collection class I guess) are these locations stored in ? Can I get access to this object in VB ? And is the limit of 3 hard-coded, or can I change it?
Thanks!
Ed
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules