ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Display a Line w/ Caption instead of Frame w/ Caption (https://www.excelbanter.com/excel-programming/411472-display-line-w-caption-instead-frame-w-caption.html)

RyanH

Display a Line w/ Caption instead of Frame w/ Caption
 
I currently have frames in a userform to separate different types of controls
to make it easier to read for the user. The problem is they kinda take up
too much space. Is there a way I can draw a line to separate the controls
instead of a box like a lot of dialog boxes in excel?

Thanks
Ryan



Tom Hutchins

Display a Line w/ Caption instead of Frame w/ Caption
 
One way...

Add a label to your userform. Set its BackColor to black. For a vertical
line, set the label's width to 1 (or 2, for a thicker line). For a horizontal
line, set its height to 1 or 2. Drag it into position and lengthen or shorten
it as desired.

Hope this helps,

Hutch

"RyanH" wrote:

I currently have frames in a userform to separate different types of controls
to make it easier to read for the user. The problem is they kinda take up
too much space. Is there a way I can draw a line to separate the controls
instead of a box like a lot of dialog boxes in excel?

Thanks
Ryan




All times are GMT +1. The time now is 05:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com