Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Are Reversing Macros Possible???


Can you create a macro that simply reverses another macro.

much like a reversing month end Journal???

Ie MACRO 1

the macro hides column N, then multiplies Column C x D

Can I make a macro to reverse this?

MACRO 2

divides column D / C , then unhides column N

I realise that this is a simple example and i could create a separate
macro, but the macro I wish to reverse is much larger!!

Anyone got any ideas??


ta muchly all!!


--
guilf
------------------------------------------------------------------------
guilf's Profile: http://www.excelforum.com/member.php...o&userid=25608
View this thread: http://www.excelforum.com/showthread...hreadid=391018

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Are Reversing Macros Possible???


Of course you can reverse the macro. Just start at the bottom and wor
your way up.

Are you going for an 'undo' type of functionality after running
macro

--
bhofset
-----------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...fo&userid=1880
View this thread: http://www.excelforum.com/showthread.php?threadid=39101

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Are Reversing Macros Possible???

AFAIK there is no undo function with a macro. A workaround however is
to use a revertToLastSaved macro which returns you to the last saved
state if the results of the macro are unsatisfactory, such as:

Sub RevertFile()

wkname = ActiveWorkbook.Path & "\" & ActiveWorkbook.Name
ActiveWorkbook.Close savechanges:=False

Workbooks.Open FileName:=wkname

End Sub

Greg

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
Reversing the log Charli B Excel Discussion (Misc queries) 6 July 16th 08 11:11 AM
Reversing a column. How? [email protected] Excel Discussion (Misc queries) 5 December 21st 06 09:04 PM
reversing entry american New Users to Excel 4 May 30th 06 11:11 PM
Reversing First & Last Name Magic Excel Worksheet Functions 3 April 6th 05 08:18 PM
Reversing Words Todd Huttenstine[_2_] Excel Programming 5 December 16th 03 05:50 AM


All times are GMT +1. The time now is 11:23 PM.

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

About Us

"It's about Microsoft Excel"