Advertisement
duck__boy1981

VBA capture undo event

Feb 13th, 2013
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.22 KB | None | 0 0
  1. Function EditUndo() ' Catches Ctrl-Z
  2.  
  3.     If ActiveDocument.Undo = False Then Exit Function
  4.    
  5.     While BookMarkExists("_InMacro_")
  6.         If ActiveDocument.Undo = False Then Exit Function
  7.     Wend
  8.    
  9. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement