+ Reply to Thread
Results 1 to 4 of 4

enable a disabled button

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    enable a disabled button

    i have disabled a button after the first click, but I want the button to be re-enabled when there has been a change in the workbook, not just a range of cells but the whole workbooks. So when any chnage is made on the workbook, the button should be enabled, and yet after another click, it should be disabled an so on, i hope you get the gist. I know someone out there has the excel magic I need. Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: enable a disabled button

    1) Replace all the module1 code with this:
    Please Login or Register  to view this content.

    There's no need to activate sheets or bounce around. This version will check if the external file is open already or not, copy to it, and leave it open if it was open, it will not "switch" to that workbook unnecessarily.

    2) Put this macro into the ThisWorkbook module:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: enable a disabled button

    Does that work for you?

  4. #4
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: enable a disabled button

    Just tried it, it works! Thanks a lot

+ 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