Word Undo

R

Roby E Martins

hi,

I´m Roby E Martins, VB Developer.

I´m trying to make my own screen with Word Undo
properties.
Something like: what kind of UNDO are there, how many
UNDO are available and where in the document it make
changes. the same to RENDO too.

Please, I only found Undo event and canUndo property.

Thank you,
Roby E Martins
 
J

Jonathan West

Hi Roby

There is also an Undo method, which can undo the most recent edits to the
document (since the document was last saved). The changes are made wherever
the previous edits occured. The Redo method cancels the latest Undo.

--
Regards
Jonathan West - Word MVP
http://www.multilinker.com
Please reply to the newsgroup

hi,

I´m Roby E Martins, VB Developer.

I´m trying to make my own screen with Word Undo
properties.
Something like: what kind of UNDO are there, how many
UNDO are available and where in the document it make
changes. the same to RENDO too.

Please, I only found Undo event and canUndo property.

Thank you,
Roby E Martins
 
R

Roby E Martins

Hi Jonathan West,

Yes, I know that there is a Undo method. But What I´m
trying to do is a List with the Undo events.
For Example:
How many Undo events are available?
The First undo event is a Dragdrop or a Text type?

Thank you,
Roby E Martins
 
J

Jonathan West

Hi Roby

Unfortunately, there is nothing in the Word object model that provides that
information.

--
Regards
Jonathan West - Word MVP
http://www.multilinker.com
Please reply to the newsgroup


Hi Jonathan West,

Yes, I know that there is a Undo method. But What I´m
trying to do is a List with the Undo events.
For Example:
How many Undo events are available?
The First undo event is a Dragdrop or a Text type?

Thank you,
Roby E Martins
 
K

Klaus Linke

Hi Roby,

You can get a bit of info from the control on the toolbar:

Dim myCBCB As CommandBarComboBox
Set myCBCB = CommandBars.FindControl(ID:=128)
Dim i, imax
imax = myCBCB.ListCount
For i = 1 To imax
MsgBox myCBCB.List(i), , i & " of " & imax
Next i

The macro should list the actions that can currently be undone (as they
appear when you click on the dropdown arrow), and their count.

Don't know whether you can use that, though, because the messages are rather
unspecific.

Regards,
Klaus



Hi Jonathan West,

Yes, I know that there is a Undo method. But What I´m
trying to do is a List with the Undo events.
For Example:
How many Undo events are available?
The First undo event is a Dragdrop or a Text type?

Thank you,
Roby E Martins
 

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