Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
CLEAR FIELD TEXT ON CLICK?
Hi. I have a form that I'd like to automatically clear when it's
clicked for text input. Is this possible in excel? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
CLEAR FIELD TEXT ON CLICK?
On May 21, 12:36*pm, KLZA wrote:
Hi. *I have a form that I'd like to automatically clear when it's clicked for text input. *Is this possible in excel? Private Sub TextBox1_Enter() Me.TextBox1.Text = "" End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
CLEAR FIELD TEXT ON CLICK?
Thanks. But how do I apply this to a field? I'm using a field
instead of a text box. JW wrote: On May 21, 12:36�pm, KLZA wrote: Hi. �I have a form that I'd like to automatically clear when it's clicked for text input. �Is this possible in excel? Private Sub TextBox1_Enter() Me.TextBox1.Text = "" End Sub |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
CLEAR FIELD TEXT ON CLICK?
On May 21, 12:42Â*pm, KLZA wrote:
Thanks. Â*But how do I apply this to a field? Â*I'm using a field instead of a text box. JW wrote: On May 21, 12:36�pm, KLZA wrote: Hi. �I have a form that I'd like to automatically clear when it's clicked for text input. �Is this possible in excel? Private Sub TextBox1_Enter() Â* Â* Me.TextBox1.Text = "" End Sub- Hide quoted text - - Show quoted text - Oh. I was assuming you were talking about a UserForm. Are you referring to a cell on a worksheet? If so, you can do something like this, assuming the cell you want to clear is A2. This code would go in the sheet's code module. Right click the sheet tab and select View Code. Then paste this in there. Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$A$2" Then Target.ClearContents End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to clear content from unprotected Field | Excel Worksheet Functions | |||
Click in one field and data presented in another field | Excel Discussion (Misc queries) | |||
how do i create a button to clear a value field i created? | Excel Programming | |||
UserForm TextBoxes (with ControlSource set) won't clear in one click | Excel Programming | |||
HELP!! Populate text in single XL field, or bulk copy text into 1 field | Excel Programming |