+ Reply to Thread
Results 1 to 11 of 11

Create a clear/reset "button"?

Hybrid View

  1. #1
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Create a clear/reset "button"?

    I'm just finishing a project that is a collection of three calculators, each of which returns data based on a series of user-supplied variables.
    I don't see how the example workbook you provided does any type of calculating.

    Although several good suggestion/examples have been put forth, you could get an answer tailored to your specific situation if you provide a workbook that is truly reflective of what you describe above - a collection of calculators.

  2. #2
    Registered User
    Join Date
    12-16-2008
    Location
    Minneapolis
    Posts
    16

    Re: Create a clear/reset "button"?

    Thanks all for the replies - I'm very close to the solution. I went with the code suggested by cheeky and shg, though it seems the problem is that one of the fields I'm trying to clear is actually three cells merged and centered. When I run the macro from the worksheet, it returns an error that only reads "400", so I tried running it from the VBA Editor, and it errors: Cannot change part of a merged cell." Is it generally bad practice to use merged cells? I merged them to take advantage of available space in the "UI" and would prefer not to un-merge them... any bright ideas?

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Create a clear/reset "button"?

    Is it generally bad practice to use merged cells?
    It is uniformly terrible practice to use merged cells if the contents are used for anything other than presentation -- i.e., if there is any downstream dependency.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    12-16-2008
    Location
    Minneapolis
    Posts
    16

    Re: Create a clear/reset "button"?

    I've unmerged the cells, and the script is working perfectly. Thank you all-

+ 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