Hello OS: Windows XP SP2 App: Office 2003 SP3 I would like to suspend the Undo function in Word. Is it possible using VBA? Regards Mike
"Mike Faulkner" wrote in message news:DF95C273-EF9B-4F75-94F3-D4D60F3D252C@microsoft.com... > Hello > > OS: Windows XP SP2 > App: Office 2003 SP3 > > I would like to suspend the Undo function in Word. Is it possible using > VBA? > At the end of a macro you can clear the undo stack entirely using the UndoClear method. You can't temporarily turn off undo so that the actions of your macro don't appear on the undo stack, but everything before and after does. -- Regards Jonathan West - Word MVP www.intelligentdocuments.co.uk Please reply to the newsgroup
Jonathan Thank you for your reply. Can the Undo function be permanently turned off? Regards Mike "Jonathan West" wrote: > > "Mike Faulkner" wrote in message > news:DF95C273-EF9B-4F75-94F3-D4D60F3D252C@microsoft.com... > > Hello > > > > OS: Windows XP SP2 > > App: Office 2003 SP3 > > > > I would like to suspend the Undo function in Word. Is it possible using > > VBA? > > > > > At the end of a macro you can clear the undo stack entirely using the > UndoClear method. > > You can't temporarily turn off undo so that the actions of your macro don't > appear on the undo stack, but everything before and after does. > > > -- > Regards > Jonathan West - Word MVP > www.intelligentdocuments.co.uk > Please reply to the newsgroup > > >
"Mike Faulkner" wrote in message news:29052954-2806-463E-B431-F41F7406CB98@microsoft.com... > Jonathan > > Thank you for your reply. > > Can the Undo function be permanently turned off? > No, but you can make it harder to access it by removing the relevant buttons from the toolbar and removing the keyboard shortcuts for Ctrl-Z and Ctrl-Y -- Regards Jonathan West - Word MVP www.intelligentdocuments.co.uk Please reply to the newsgroup
Hi everybody, >> Can the Undo function be permanently turned off? > >No, but you can make it harder to access it by removing the relevant buttons >from the toolbar and removing the keyboard shortcuts for Ctrl-Z and Ctrl-Y at least as far as Ctrl-Z is concerned: Sub EditUndo() MsgBox "Undo was disabled" End Sub -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Vista Small Business, Office XP
"Helmut Weber" wrote in message news:plt1e4td163cbu9972ge63c0umuqbll7jg@4ax.com... > Hi everybody, > >>> Can the Undo function be permanently turned off? > >> >>No, but you can make it harder to access it by removing the relevant >>buttons >>from the toolbar and removing the keyboard shortcuts for Ctrl-Z and Ctrl-Y > > at least as far as Ctrl-Z is concerned: > > Sub EditUndo() > MsgBox "Undo was disabled" > End Sub Strictly, that doesn't entirely disable Undo. The user can still go to EditUndo in the list of Word Commands in the Tools Macros dialog. But I agree it is one way of making it a lot less accessible! -- Regards Jonathan West - Word MVP www.intelligentdocuments.co.uk Please reply to the newsgroup