A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Undo insert table



 
 
Thread Tools Display Modes
  #1  
Old March 22nd, 2010, 01:43 PM
Neron Neron is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Jul 2005
Posts: 34
Default Undo insert table

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
  #2  
Old March 22nd, 2010, 07:28 PM posted to microsoft.public.word.tables
Stefan Blom[_3_]
external usenet poster
 
Posts: 4,556
Default Undo insert table

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  
Old March 23rd, 2010, 11:37 AM
Neron Neron is offline
Experienced Member
 
First recorded activity by OfficeFrustration: Jul 2005
Posts: 34
Default

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

Quote:
Originally Posted by Stefan Blom[_3_] View Post
Why not just delete the table when/if you want to get rid of it?

--
Stefan Blom
Microsoft Word MVP
  #4  
Old March 23rd, 2010, 01:38 PM posted to microsoft.public.word.tables
Tony Jollans
external usenet poster
 
Posts: 1,297
Default Undo insert table

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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.