Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I've a question.Please

Status
Not open for further replies.

utkuozel

Technical User
Jan 6, 2005
1
0
0
TR
I want to delete in textbox in VBA.
how can i do it?
 
do you really want to delete it?

You dan just hide
TexboxName.Visible = False

Or disbale it
TextboxName.Enabled = False

 
delete the text IN the textbox or delete the textbox ???

Either way, a VERY quick perusal of the help files will give you the answer

Rgds, Geoff

"Three things are certain: Death, taxes and lost data. Guess which has occurred"

Please read FAQ222-2244 before you ask a question
 
And you need to state what kind of a textbox. Is this a textbox on a UserForm? Plus we have no idea what application you are using. Is this for Word? Is this for Excel? What?

If Word, is this a Form Field textbox? Is this an ActiveX control textbox? Is this a texbox created with Insert > Textbox, in which case it is neither a Form Field textbox, OR an ActiveX control textbox, it is an InlineShape textbox.

Actually Troy and Geoff's question are crucial. Do you want to delete the contents, or the box itself; do you want to hide it, or really delete it?

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top