+ Reply to Thread
Results 1 to 3 of 3

Undo Button Click change

Hybrid View

  1. #1
    Kiran
    Guest

    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. #2
    FSt1
    Guest

    RE: Undo Button Click change

    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. #3
    Dave Peterson
    Guest

    Re: Undo Button Click change

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1