#1   Report Post  
DPW1
 
Posts: n/a
Default can't undo

I can't undo after using a macro that does paste special formulas. Following
is the macro:

Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End
  #2   Report Post  
Jim Cone
 
Posts: n/a
Default

Undo does work with macros.
You have to write specific code to undo the macro.
One could give the user an option to undo -
say a button to click - then run the undo code.

Jim Cone
San Francisco, USA.

"DPW1" wrote in message
...
I can't undo after using a macro that does paste special formulas. Following
is the macro:

Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End
  #3   Report Post  
George Nicholson
 
Posts: n/a
Default


AFAIK Undo only applies to actions taken *by the user*. It cannot be used
to undo Visual Basic commands (or macros, which are the same thing).

Similar to what it says in the VB Help entry for the Undo method.

--
George Nicholson

Remove 'Junk' from return address.


"DPW1" wrote in message
...
I can't undo after using a macro that does paste special formulas.
Following
is the macro:

Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False
End



  #4   Report Post  
Jim Cone
 
Posts: n/a
Default

Left out an important word.
Text should read...

"Undo does not work with macros"

Jim Cone


"Jim Cone" wrote in message ...
Undo does work with macros.
You have to write specific code to undo the macro.
One could give the user an option to undo -
say a button to click - then run the undo code.

Jim Cone
San Francisco, USA.

"DPW1" wrote in message
...
I can't undo after using a macro that does paste special formulas. Following
is the macro:
Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End
  #5   Report Post  
Gord Dibben
 
Posts: n/a
Default

This is default nature of macros......they cannot be undone.

You would have to store the original data then retrieve it using another
"undo" macro.

See John Walkenbach's site for an undo macro.

http://j-walk.com/ss/excel/tips/tip23.htm


Gord Dibben Excel MVP

On Tue, 5 Jul 2005 10:12:02 -0700, "DPW1"
wrote:

I can't undo after using a macro that does paste special formulas. Following
is the macro:

Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 Undo greys out after few minutes - Not saving laralea Excel Discussion (Misc queries) 1 June 30th 05 08:14 PM
UNDO - how many times can I UNDO? Jane Excel Worksheet Functions 2 May 19th 05 03:03 AM
How can I increas undo level in EXCEL ? Sajid Siddique New Users to Excel 1 November 26th 04 12:56 PM
How can I increas undo level in Microsoft EXCEL ? Sajid Siddique New Users to Excel 0 November 26th 04 10:09 AM
Why is my undo function in Excel only can undo the last 1 or 2 ch. 1111111111111111111111111111111111111111 Excel Worksheet Functions 1 November 24th 04 11:13 AM


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"