Stopping undo

J

Jonas Olofsson

I am working with shapes in Word. The shapes are drawn with VBA code and
grouped with text boxes. When I have drawn the shapes and grouped them with
the textboxes I clear the undo buffer by calling UndoClear on the document
object. Then if I select another shape and check the Undo command under the
Edit menu commands are available to undo regroup of a shape. How can I stop
this? I do not want to allow the user to ungroup some of these shape groups.

Regards,

Jonas Olofsson
 
C

Cindy Meister -WordMVP-

Hi Jonas,

Well, the user will probably always be able to select a grouped shape and
ungroup using the basic DRAWING tools... You might want to cut, then paste
special as a picture.
I am working with shapes in Word. The shapes are drawn with VBA code and
grouped with text boxes. When I have drawn the shapes and grouped them with
the textboxes I clear the undo buffer by calling UndoClear on the document
object. Then if I select another shape and check the Undo command under the
Edit menu commands are available to undo regroup of a shape. How can I stop
this? I do not want to allow the user to ungroup some of these shape groups.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top