+ Reply to Thread
Results 1 to 5 of 5

Command Button Stops Working After First Use

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Command Button Stops Working After First Use

    Hello folks

    I recently started dabbling with Command Buttons, and I'm having a problem. Everything used to work perfectly, so I don't know what changed. I use Excel 2013

    I have 2 Command Buttons on this sheet. One of them works perfectly, and the second will only work once. Once I tell button 2 to do it's thing, the button then becomes unresponsive until I enter design mode and move the button. After moving the button, it will work once more, and then stop working again. The distance of the move doesn't appear to matter.

    Here is the macro assigned to the problematic button. Would someone please tell me what's going on?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Command Button Stops Working After First Use

    Hi OpieWinston,

    I am assuming that you can run this macro several times consecutively successfully from within the debugger.

    When I have problems like yours, the following sometimes corrects the problem:
    a. Make a backup copy of the file.
    b. Make a copy of the worksheet in the same workbook.
    c. Delete the original worksheet.
    d. Rename the the copied worksheet back to the Original name.
    e. Save the workbook and try again.

    I hope this helps.

    Lewis

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: Command Button Stops Working After First Use

    I agree with the first response in assuming that there is corruption. What he suggested looks like a lot but it really is very quick.

    Another idea is to rebuild the button.

    This is an almost insulting suggestion because it's so remedial, but what you're describing really does point to doing a reboot and trying again. Since clicking is an event that goes through the operating system, and it's malfunctioning, try restarting the OS.

    Sorry that no direct or magic answer comes to mind. What you describe is indeed bizarre.

  4. #4
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: Command Button Stops Working After First Use

    By the way, I am curious, since you specify multiple columns, why field is set to 12 on one of your lines? (I've never understood why they have a Field argument. It may be simple but I've not spent a lot of time trying to figure it out)
    Chip, if you can read this, you're STILL making the world a better place with your immeasurably valuable gifts. Every week, you continue to help me (and untold numbers of others) tremendously. Practically no alternative outlets can match your effectiveness, even over the vast number of topics you demystify and empower usage of. You were, and still are, amazing.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Command Button Stops Working After First Use

    The 12 used in the Field argument is for the 12th column in the range being filtered.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Command Button Not working in new file
    By Fletch74 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-05-2013, 11:41 PM
  2. Command button code not working
    By mariposa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2011, 05:03 AM
  3. Command button is not working by using VBA
    By Webtekr in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2009, 02:22 AM
  4. [SOLVED] Create button code stops working
    By Stuart in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2005, 05:06 PM
  5. [SOLVED] command button isn't working
    By Nydia in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-29-2005, 06:06 PM

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