Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old July 31st 08, 03:07 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Sep 2008
Posts: 13
Default User Form Text Box - auto delete prompt text

Hi Guys,

I have a text box that I am using to record date of birth. I am using
the DD/MMM/YY format to avoid US / UK format confusion. I have written
the text 'DD/MMM/YY' in the text box as a prompt for the user to enter
the correct date format.

At the moment when the user clicks the Date of Birth text box they
either need to delete the 'DD/MMM/YY' text or press insert to
overwrite it. Is it possible to get this text to automatically delete
once the text box is clicked?

I have searched the group but can't find anything - any help would be
great!!

Thanks in advance

Paul

  #2   Report Post  
Old July 31st 08, 03:13 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Sep 2006
Posts: 1,117
Default User Form Text Box - auto delete prompt text

Private Sub Textbox1_Click()
Textbox1.value = ""
End Sub

hope that helps!
susan


On Jul 31, 10:07*am, wrote:
Hi Guys,

I have a text box that I am using to record date of birth. I am using
the DD/MMM/YY format to avoid US / UK format confusion. I have written
the text 'DD/MMM/YY' in the text box as a prompt for the user to enter
the correct date format.

At the moment when the user clicks the Date of Birth text box they
either need to delete the 'DD/MMM/YY' text or press insert to
overwrite it. Is it possible to get this text to automatically delete
once the text box is clicked?

I have searched the group but can't find anything - any help would be
great!!

Thanks in advance

Paul


  #3   Report Post  
Old July 31st 08, 03:18 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Sep 2006
Posts: 1,117
Default User Form Text Box - auto delete prompt text

ignore that - there apparently is NO click event for a
textbox.........
hmmmmmm.
i don't know!
sorry
susan


On Jul 31, 10:13*am, Susan wrote:
Private Sub Textbox1_Click()
Textbox1.value = ""
End Sub

hope that helps!
susan

On Jul 31, 10:07*am, wrote:



Hi Guys,


I have a text box that I am using to record date of birth. I am using
the DD/MMM/YY format to avoid US / UK format confusion. I have written
the text 'DD/MMM/YY' in the text box as a prompt for the user to enter
the correct date format.


At the moment when the user clicks the Date of Birth text box they
either need to delete the 'DD/MMM/YY' text or press insert to
overwrite it. Is it possible to get this text to automatically delete
once the text box is clicked?


I have searched the group but can't find anything - any help would be
great!!


Thanks in advance


Paul- Hide quoted text -


- Show quoted text -




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form Text Boxes - Copy format of text boxes NDBC Excel Discussion (Misc queries) 3 July 2nd 09 02:02 AM
Text on User form Dean[_8_] Excel Programming 2 July 22nd 06 08:14 AM
How prompt Excel user to fill cell with text, i.e., proposal name Deb Excel Discussion (Misc queries) 5 June 5th 06 11:41 PM
Formatting text in a user form text box DB Excel Programming 0 July 23rd 05 08:09 PM
Auto fill text boxes in user form by inputting data in another Finny33 Excel Programming 1 September 13th 04 12:53 PM


All times are GMT +1. The time now is 10:04 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017