Simple Question

Jotoya

Active Member
Joined
May 25, 2003
Messages
366
Hi,

I know this is probably a silly question but I just can't seem to figure this one out:

How do I go about adding "Lines" in a user form. I find myself sometimes needing just one of the lines that a "Frame" uses but I can't seem to figure out how. Does the toolbox offer a line drawing button to separate controls instead of having to use a full frame? Thank you so much. (y)
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You can use a Label control. Set the Back Color property to Black and set the height to 1
 
Upvote 0
Hi Jose,
I don't know the "real" way to do this, but what works for me is to add a Listbox where you want your line to be. If you want it to have an "engraved" or sunken type look, set the height properties to 2 or 3.
If you just want a thin black line, set the height properties to 1.

Kinda a stupid way to go about it I guess, but it works.
Dan

Edit:
According to btadams, I guess this is close to the "real" way to go afterall.
 
Upvote 0
Hey Smitty, What's the haps?
Actually the listbox is the method I use (instead of the label) because I like the cool "engraved" look for the lines in my forms. :cool:
I just didn't realize anybody else was using the same concept!
Good to know I'm not the only one that thinks like I do.
(Is there a more conventional way to put lines in a form???)

Also, (sorry...off the subject), but I liked your environmorons post! :LOL:
Dan
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top