+ Reply to Thread
Results 1 to 3 of 3

UserForm Reset Button does not work

  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    Virginia Beach, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    22

    UserForm Reset Button does not work

    I'm using a rather large spreadsheet with 26 columns. In the upper left of the sheet, I've use a DSUM function to allow the user to rapidly fill in any desired filter criteria. This portion works great. To make things even easier for the user I created a UserForm1 to fill in criteria vice having to scroll through 26 columns. The form does not include every field but does include the mose important ones. On the users initial filter query things work great - but I added a "Reset" CmdBtn to clear the filter TxtBoxes and allow the user to run another query. This does not work on the form. Basically, I cleared the TxtBoxes of thier value and cleared Row 4 (where the criteria is entered on the spreadsheet for the DSUM function). The "Reset" returns a value of "0." instead of the DSUM of all the data without crteria. If I clear the filters directly off the spreadsheet without the form, then the DSUM function does return the DSUM of all the data which is what I want the "Reset" button to perform. I've attaced a sampling of the larger spreadsheet for review and below is the code behind the UserForm1. Any help to show me how to get the "Reset" button to work is greatly appreciated. The "Filter" button at E2 will activate the form.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Ambassador777; 01-03-2013 at 12:14 PM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: UserForm Reset Button does not work

    perhaps
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    05-16-2011
    Location
    Virginia Beach, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: UserForm Reset Button does not work

    Works perfectly! Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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