Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2012, 06:43 AM
ll4u76 ll4u76 is offline How do you undo a macro? Windows 7 32bit How do you undo a macro? Office 2010 32bit
Novice
How do you undo a macro?
 
Join Date: Mar 2012
Posts: 7
ll4u76 is on a distinguished road
Post How do you undo a macro?

I have created a form with several options on the form. I want the users to be able to select a macro then be able to undo that macro if they did not like/want that option.



I have looked on various websites which posted the same question but no resolution to the situation. Can you write a command to undo the previous macro?
Reply With Quote
  #2  
Old 03-22-2012, 07:03 AM
macropod's Avatar
macropod macropod is offline How do you undo a macro? Windows 7 64bit How do you undo a macro? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Have you considered the Document.Undo method?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-22-2012, 07:09 AM
ll4u76 ll4u76 is offline How do you undo a macro? Windows 7 32bit How do you undo a macro? Office 2010 32bit
Novice
How do you undo a macro?
 
Join Date: Mar 2012
Posts: 7
ll4u76 is on a distinguished road
Default

No, how would I write that command out?
Reply With Quote
  #4  
Old 03-22-2012, 07:12 AM
macropod's Avatar
macropod macropod is offline How do you undo a macro? Windows 7 64bit How do you undo a macro? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Have you looked in the vba Help file? It has an example.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 03-22-2012, 07:33 AM
ll4u76 ll4u76 is offline How do you undo a macro? Windows 7 64bit How do you undo a macro? Office 2010 32bit
Novice
How do you undo a macro?
 
Join Date: Mar 2012
Posts: 7
ll4u76 is on a distinguished road
Default

Great suggestions macropod, it worked.
Reply With Quote
  #6  
Old 03-22-2012, 12:13 PM
ll4u76 ll4u76 is offline How do you undo a macro? Windows 7 64bit How do you undo a macro? Office 2010 32bit
Novice
How do you undo a macro?
 
Join Date: Mar 2012
Posts: 7
ll4u76 is on a distinguished road
Default

The command worked in 2010 but when I sent it to someone who has 2003, it did not work.

What can I do to fix it?
Reply With Quote
  #7  
Old 03-22-2012, 02:01 PM
macropod's Avatar
macropod macropod is offline How do you undo a macro? Windows 7 64bit How do you undo a macro? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The command works in Word 2003, so the issue must be with how it's being implemented.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
undo error in Word 2007 and 2010 neil1967 Word 1 07-18-2014 10:25 AM
Help with delete in Outlook 10....can I undo? ualdriver Outlook 2 01-14-2011 07:46 AM
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 08:38 AM.


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