Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kiran
 
Posts: n/a
Default Undo Button Click change

I have a Sort button on my worksheet which sorts a range od data
alphabetically. On clicking the sort it sorts the data, But if I try to undo
that change it does not work, Ctrl+Z is disabled.
Can anyone let me know (VBA code if needed) how I can take care of this?

Thnx
  #2   Report Post  
FSt1
 
Posts: n/a
Default

hi,
Excel has a lot of built in niceities, the undo is one of them. but they
only work when doing things manually. macro code bypasses all the built in
niceities.
You can not undo anything done with macro code. If you want to undo your
sort, then you will have to write code that will resort your data. maybe
another button.

Good luck
FSt1

"Kiran" wrote:

I have a Sort button on my worksheet which sorts a range od data
alphabetically. On clicking the sort it sorts the data, But if I try to undo
that change it does not work, Ctrl+Z is disabled.
Can anyone let me know (VBA code if needed) how I can take care of this?

Thnx

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you want your macro to have an undo, you have to take care of it yourself.

John Walkenbach has some tips at:
http://j-walk.com/ss/excel/tips/tip23.htm



Kiran wrote:

I have a Sort button on my worksheet which sorts a range od data
alphabetically. On clicking the sort it sorts the data, But if I try to undo
that change it does not work, Ctrl+Z is disabled.
Can anyone let me know (VBA code if needed) how I can take care of this?

Thnx


--

Dave Peterson
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
Conditional Formatting LtWesterholm Excel Worksheet Functions 3 April 12th 05 06:35 PM
Command Button VBA code Dave Peterson Excel Discussion (Misc queries) 2 January 26th 05 12:28 AM
Change cell back color on click Dave Peterson Excel Discussion (Misc queries) 0 January 24th 05 11:50 PM
Undoing LINKS in Excel 2000 jayceejay New Users to Excel 3 January 4th 05 06:58 PM
Macro button colour change??? Beefyme Excel Worksheet Functions 1 November 19th 04 07:15 PM


All times are GMT +1. The time now is 02:58 AM.

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"