Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Making a TextBox look and feel like a Label in a userform

I see, yes it makes sense.

The only thing you have to do is put the textbox inside a frame control. Delete the
frame's caption and border if you want it "invisible" for layout reasons. Then you can
just toggle it like

Frame1.Enabled = Not Frame1.Enabled

and leave the textbox as is, no alterations needed.

--
HTH. Best wishes Harald
Excel MVP

Followup to newsgroup only please.

"Mike NG" wrote in message ...
On Wed, 30 Jul 2003 at 00:15:11, Harald Staff (Harald Staff
) wrote:
Why spend time learning a cat to bark when you can have a dog ? What do you want the
textbox to do that a label can't ?

In one mode to be a textbox, but in the other for it to behave like a
label, i.e. display only and not landable. My form has several fields
and having two userforms would be wasteful, especially since most of the
code does the same thing in the two modes.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Making a TextBox look and feel like a Label in a userform

On Wed, 30 Jul 2003 at 08:33:28, Harald Staff (Harald Staff
) wrote:
The only thing you have to do is put the textbox inside a frame control. Delete the
frame's caption and border if you want it "invisible" for layout reasons.

Many thanks.

I was wondering if, using your original analogy, I could have taught a
dog to be a cat, but that wouldn't have worked either
--
Mike
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
WordWrap a TextBox on a UserForm dcornett63 Excel Discussion (Misc queries) 2 April 22nd 10 09:35 PM
userform textbox Phil Excel Worksheet Functions 5 January 16th 05 06:59 PM
Making a TextBox look and feel like a Label in a userform ijb Excel Programming 0 July 30th 03 12:26 AM
Making a TextBox look and feel like a Label in a userform Mike NG Excel Programming 0 July 29th 03 11:52 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 03:30 PM.

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

About Us

"It's about Microsoft Excel"