Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Mon, 29 Sep 2008 01:45:01 -0700,    group: microsoft.public.word.vba.general        back       


Suspend Undo Function   
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
date: Mon, 29 Sep 2008 01:45:01 -0700   author:   Mike Faulkner

Re: Suspend Undo Function   
"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
date: Mon, 29 Sep 2008 10:04:52 +0100   author:   Jonathan West

Re: Suspend Undo Function   
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 
> 
> 
>
date: Mon, 29 Sep 2008 04:26:01 -0700   author:   Mike Faulkner

Re: Suspend Undo Function   
"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
date: Mon, 29 Sep 2008 13:13:47 +0100   author:   Jonathan West

Re: Suspend Undo Function   
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
date: Mon, 29 Sep 2008 17:43:54 +0200   author:   Helmut Weber

Re: Suspend Undo Function   
"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
date: Mon, 29 Sep 2008 16:55:38 +0100   author:   Jonathan West

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us