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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a textbox Read Only using Excel 2000 VBA

Status
Not open for further replies.

vestax22

Programmer
Jun 18, 2003
139
CA
Hi, I just want to know how to make a textbox read only without setting the enabled property to false.

I use a method called setfocus on these textboxes which requires them to be enabled.

Any help would be appreciated.




 
I thought that I already responded to this, but I must not have submitted it. If you set the locked property to true on the box and the caption to what ever you want it to be, the box can then have the focus, but is still read only.
 
You can also use a label instead, formatted to view as a text box.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top