> Which TextBox are we talking about... an ActiveX one placed on the
> worksheet, a Shapes one from the Drawing toolbar (also placed directly on
[quoted text clipped - 12 lines]
> >
> > Thanks.
Here is one way (it is a kludge, but it does seem to work)... Go into Design
Mode; add another TextBox from the Control Toolbox to the worksheet and give
it the name HiddenTextBox (name is unimportant as long as we know what it is
because we will be referring to it in code); now, move this "hidden" TextBox
completely off-screen (personally, I would place it at the complete
bottom-right-hand corner of the worksheet, in the vicinity of cell IV65536,
so it won't ever be seen); then go back to the TextBox which is to be
"disabled" and double-click it in order to get to the code window for the
worksheet it is on; copy/paste the following code into that code window...
Private Sub TextBox1_GotFocus()
HiddenTextBox.Text = ""
HiddenTextBox.Activate
End Sub
Note that I'm assuming the TextBox that is to be "disabled" is named
TextBox1... if that is not the case, change the TextBox1 in the event
procedure header to the actual name of the TextBox. That is it. Whenever the
user clicks into the "disabled" TextBox, the cursor will be redirected into
the "hidden" TextBox where any and all typing will go. See... I told you it
was a kludge.<g>
Rick
> My apologies I forgot to mention that key bit of information
>
[quoted text clipped - 19 lines]
>> >
>> > Thanks.
NateBuckley - 15 May 2008 08:30 GMT
Sometimes we gotta kludge. :P
Thanks matey, your help is appreciated muchly.
> Here is one way (it is a kludge, but it does seem to work)... Go into Design
> Mode; add another TextBox from the Control Toolbox to the worksheet and give
[quoted text clipped - 43 lines]
> >> >
> >> > Thanks.