![]() |
|
#1
|
||||
|
||||
![]()
The UndoRecord is not necessary for your macro but it is handy if there is a chance you want to UNDO all the steps of the macro with a single keystroke.
Word's undo command steps backwards through the most recent document changes. When a macro performs a lot of changes to a document it takes a lot of consecutive undo commands to reverse out all the changes made by that macro. Those lines in Brian's code groups all of those single steps into a single undo command. So if you don't expect to undo the macro's changes then it will make no difference to the code if you include or don't include those lines.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]()
Andrew,
That makes sense - thank you for the explanation. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to make a LINE BOLD under cursor | Retko | Word VBA | 4 | 01-28-2022 03:38 AM |
![]() |
DiGug | Word | 3 | 10-02-2014 02:43 PM |
Format Bold in one line makes all lines bold | Nitte | Word | 2 | 02-07-2013 12:34 AM |
How to Center One Line Vertically on Blank Page | SQLUSA | Word | 1 | 08-29-2012 08:14 PM |
Macro that will go to line # and center text | marge | Word VBA | 0 | 09-10-2010 12:30 PM |