+ Reply to Thread
Results 1 to 3 of 3

Update/Refresh button

  1. #1
    Registered User
    Join Date
    07-30-2009
    Location
    Vancouver, British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Talking Update/Refresh button

    Hi,

    I'm looking to create a refresh/update button for my userform. What I have is various textboxes, of which the last textbox contains input from the other textboxes.

    For example, I have 3 textboxes. The first one contains months, the second contains years, the third pulls from both the first two.

    First: August
    Second. 2009
    Third: August 2009

    What I need is if I change the text in either the first or second textbox, I can click the refresh button and it'll update the third box.

    Any ideas

    Cheers,
    Last edited by ilovelagar; 09-23-2009 at 09:42 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    08-19-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Update/Refresh button

    Assuming you've got textboxes named txtMonth, txtYear, and txtBoth, you could have this sort of function as the code for what happens when you click the button:

    Please Login or Register  to view this content.
    The Trim function would remove the middle space in case one or both of the text boxes are blank.

  3. #3
    Registered User
    Join Date
    07-30-2009
    Location
    Vancouver, British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Update/Refresh button

    Quote Originally Posted by telyni View Post
    Assuming you've got textboxes named txtMonth, txtYear, and txtBoth, you could have this sort of function as the code for what happens when you click the button:

    Please Login or Register  to view this content.
    The Trim function would remove the middle space in case one or both of the text boxes are blank.
    Perfect, thanks!

+ 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