+ Reply to Thread
Results 1 to 4 of 4

How to Clear default value from Textbox on click?

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    How to Clear default value from Textbox on click?

    I have a couple of text box and combo box in my form. All the textbox/comobo box having their default value. I want to clear that value when i click on that text box. if i am not typing anything and moving to other text box then the default value should be their as is.

    I am attaching my excel here.

    Any help will be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: How to Clear default value from Textbox on click?

    I have not looked at your code. I had a similar problem with Text Boxes.

    Forms TextBoxes do not support a 'Click Event' without extraordinary measures beyond my capability.
    They do support the 'Double Click':

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: How to Clear default value from Textbox on click?

    Thanks for replay.. It is working on double click. But i am looking as a user, generally user click once or tab to the next text box.

    I can't keep it as a double click.

    If single click is not supported in VBA then i need to think something else.

    Any way thanks for your replay.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: How to Clear default value from Textbox on click?

    The strategy I use is:
    a. Double Click a 'Text Box' to clear the data in the 'Text Box'.
    b. Double Click a 'Label' associated with a 'Combo Box' to cycle to the next item in a 'Combo Box' list.

+ 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 All vs. default font size
    By jhren in forum Excel General
    Replies: 9
    Last Post: 06-18-2013, 03:05 AM
  2. [SOLVED] Clear Textbox, after clicking 2 times
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2012, 06:32 PM
  3. Default Double Click Clear macro
    By theghost in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2012, 11:20 AM
  4. Replies: 2
    Last Post: 11-17-2008, 09:14 PM
  5. Clear Date textbox
    By tqm1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2007, 08:35 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