Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]() Hi all, I was wondering... I have a VBA macro in order to insert a table into a document and setting up font styles, table borders and so on. If I want to undo this action of inserting this table, I have to use a lot of [Ctrl]+[Z]'s, or clear a large list of previous actions in order to get to the state of the document before inserting the tabel. Is there an easier way to do this? Like create an "UndoRestorePoint" or a "GroupTheseActions"-action or something like that? Greetz, Bert -- Neron |
#2
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
Why not just delete the table when/if you want to get rid of it?
-- Stefan Blom Microsoft Word MVP "Neron" wrote in message ... Hi all, I was wondering... I have a VBA macro in order to insert a table into a document and setting up font styles, table borders and so on. If I want to undo this action of inserting this table, I have to use a lot of [Ctrl]+[Z]'s, or clear a large list of previous actions in order to get to the state of the document before inserting the tabel. Is there an easier way to do this? Like create an "UndoRestorePoint" or a "GroupTheseActions"-action or something like that? Greetz, Bert -- Neron |
#3
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]() Hi Stefan, Thanks for the reply. It's not 'just' for the insert-table-macro; it's more the concept of undoing a (-n undefined) series of actions, or grouping a set of actions into one Undo-stack action. e.g. MS Project 2007 had got an "UndoTransaction" for creating a single stack item containing multiple actions, but I haven't been able to figure out how to do this in MS Word. Greetz, Bert 'Stefan Blom[_3_ Wrote: ;3681920']Why not just delete the table when/if you want to get rid of it? -- Stefan Blom Microsoft Word MVP -- Neron |
#4
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
You could clear the Undo stack before you start, but a better way to do it
is to place something uniquely identifiable - a bookmark - in the document before you start (and to remove it when you're done). To undo, first of all undo the removal of the bookmark, then keep on undoing as long as the bookmark is in the document - when the bookmark is gone you know you have undone its creation and, therefore, everything that came later. Word 2010 does have something along these lines built in, but some aspects of its working were unclear to me last time I looked at it. -- Enjoy, Tony www.WordArticles.com "Neron" wrote in message ... Hi Stefan, Thanks for the reply. It's not 'just' for the insert-table-macro; it's more the concept of undoing a (-n undefined) series of actions, or grouping a set of actions into one Undo-stack action. e.g. MS Project 2007 had got an "UndoTransaction" for creating a single stack item containing multiple actions, but I haven't been able to figure out how to do this in MS Word. Greetz, Bert 'Stefan Blom[_3_ Wrote: ;3681920']Why not just delete the table when/if you want to get rid of it? -- Stefan Blom Microsoft Word MVP -- Neron |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I undo a page break in a table | Tables | |||
Can I undo table formatting? | Tables | |||
how do I undo the insert page command? | Microsoft Word Help | |||
Need macro to locate table uniquely, insert blank row and date and end table | Tables | |||
Toolbar option available for TABLE>INSERT>TABLE to enclose text into a table? | New Users |