Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2020, 01:10 PM
gustavo gustavo is offline How to use UNDO in macros? Windows 10 How to use UNDO in macros? Office 2019
Novice
How to use UNDO in macros?
 
Join Date: Jul 2020
Posts: 1
gustavo is on a distinguished road
Question How to use UNDO in macros?

Hi.


I'm trying to use a 3 times undo at end of my macro, but I don't know the code.
I tried .undo but it didn't work.

TIA
Reply With Quote
  #2  
Old 07-27-2020, 02:12 PM
Charles Kenyon Charles Kenyon is offline How to use UNDO in macros? Windows 10 How to use UNDO in macros? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,123
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

What is the parent for .undo?

Application.Undo
?
Reply With Quote
  #3  
Old 07-27-2020, 03:58 PM
Guessed's Avatar
Guessed Guessed is offline How to use UNDO in macros? Windows 10 How to use UNDO in macros? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,966
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

It should be
ActiveDocument.Undo 3

Refer to Document.Undo method (Word) | Microsoft Docs
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
command, macro, undo

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use UNDO in macros? How to automatically enable the macros upon opening a file with macros? laurieli Office 7 01-17-2016 08:56 AM
How to use UNDO in macros? How do you undo a macro? ll4u76 Word VBA 6 03-22-2012 02:01 PM
Undo Delete jbelorit Outlook 0 11-22-2010 08:10 AM
Undo issue eMEf PowerPoint 0 07-14-2010 10:56 AM
Where is the undo command Codey Excel 1 06-15-2010 01:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft