+ Reply to Thread
Results 1 to 4 of 4

Clear command button

  1. #1
    Registered User
    Join Date
    09-13-2008
    Location
    Montreal
    MS-Off Ver
    Office XP
    Posts
    80

    Clear command button

    I think this is the last one....

    I want to create a command button that will clear whatever is written in a text box. I guess for this to work it needs to select all, then clear. The command button and the text box have been created using the control toolbox.

    Anybody know the code for this?
    Last edited by slmi1313; 10-09-2008 at 11:57 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi slmi,

    In the code for the command button, add the line:
    Please Login or Register  to view this content.
    Change 'TextBox1' to the actual name of your textbox.

  3. #3
    Registered User
    Join Date
    09-13-2008
    Location
    Montreal
    MS-Off Ver
    Office XP
    Posts
    80
    Thanks that works great

  4. #4
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: Clear command button

    Thanks, Looking for this.

+ 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. Clear Public Variables Only?
    By rziegler in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-17-2008, 01:05 PM
  2. Clear data in cells with validation
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-25-2008, 10:25 AM
  3. Automatically Clear Cell in Drop Down List
    By kingdt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2007, 11:25 AM
  4. Clear sheet contents but retain Clipboard contents
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 01:42 PM
  5. clear all data values
    By punkiegirl420 in forum Excel General
    Replies: 3
    Last Post: 10-14-2006, 01:46 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