+ Reply to Thread
Results 1 to 3 of 3

Resetting a form with a single button

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    Brighton, UK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Resetting a form with a single button

    Current VB experience = approx 8 hours!!
    I am creating a form that includes combo drop pdown boxes and simple text entry cells.
    I need a short piece of VB code to asign to a button that can reset the combo boxes and simultaneously clear the unlocked cells - all with a single click.
    I have got some code to reset the boxes using the linked cell value and I have seen some for clearing cell content... how do I combine them?.. All help appreciated

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Resetting a form with a single button

    Please Login or Register  to view this content.
    Replace 'MyUserForm' with the name of your form.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  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: Resetting a form with a single button

    You want a button that resets a form back to the state is was when first opened?

    Example:

    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!)

+ 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. Resetting a form control combo box without using VBA
    By Chris Shepherd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2013, 10:47 PM
  2. [SOLVED] Help me streamline my code? Determine form button background from form text box
    By tivofan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2013, 10:09 AM
  3. Hide a picture button placed in all sheets using a option button (form control)
    By lagaranch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-26-2012, 10:33 AM
  4. Scroll bar (Form Control) - Resetting the scroll bar to particular values
    By Vishb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2011, 04:10 AM
  5. resetting form to start position?
    By Woolmep in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2007, 05:23 AM

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