+ Reply to Thread
Results 1 to 2 of 2

command button to clear text box AND ad value

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    50

    command button to clear text box AND ad value

    Hello,

    Userform1 has 3 command buttons and 3 text boxes. A mouse click on a text box followed by a command button click a value of 1, 2, or 3, respectively, is entered in the text box. This is the code:

    Please Login or Register  to view this content.
    The condition and action I want to add to the code is:
    1. Only one command button value is permissible in a text box
    2. If a text box contains a value, pressing the command button will clear the text box and
    2a. enter the command button value.

    Any thoughts on how I can write this in to my existing code?

    Thank you in advance.
    Gal403

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: command button to clear text box AND ad value

    Not sure I understood you correctly, try changing to:
    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

+ 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. [SOLVED] Clear Command Button
    By tapsmiled in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2014, 09:33 PM
  2. Clear command button
    By slmi1313 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 06:01 AM
  3. Command Button - Clear
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2012, 12:39 AM
  4. Command Button to clear checkbox
    By zplugger in forum Excel General
    Replies: 2
    Last Post: 06-26-2011, 09:36 AM
  5. Command Button To Save & Clear
    By Mooseman60 in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2011, 07:38 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