+ Reply to Thread
Results 1 to 3 of 3

Macro - Reset button not working anymore

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2003
    Posts
    33

    Macro - Reset button not working anymore

    Hello, my reset button was working until I added a code in the worksheet to change the name of the drop down menus depending on which list was chosen. The shortened version of the code I added to do this is (shortened because it goes from First to Fifteenth):

    Please Login or Register  to view this content.
    The macro I'm using for the reset button is:

    Please Login or Register  to view this content.
    and when I go to debug, it is saying that the following part has a "Run-time error '1004': Application-defined or object-defined error"

    Please Login or Register  to view this content.
    I'm attaching an example file so it's easy to see everything involved.

    Please let me know what is going wrong. I'm not familiar at all with macros and VB, and this reset button is the last piece of this spreadsheet I need before it's finished!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-23-2011
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Macro - Reset button not working anymore

    Alright, I got this fixed by changing this:

    Please Login or Register  to view this content.
    to this:

    Please Login or Register  to view this content.
    for a completed macro of:

    Please Login or Register  to view this content.
    But now it doesn't work when my sheet is protected. No errors, it's just that nothing happens when I click the Reset button. Do I have to change something in the macro to apply when the sheet is protected?

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro - Reset button not working anymore

    hi heather1209, if the sheet is protected you obviously need to uprotect it, do your actions and protect it again
    example:
    Please Login or Register  to view this content.
    details can be checked in VB help file for Protect and Unprotect methods

+ 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