Remove the scroll bar on a list box - excel

I'm using a userForm in vba and I have a list box. I want to remove the horoz. scroll bar from the bottom. Is there a way to do this? I don't see any option in the properties box.

This can occur when you have the column width format property of the listbox set to something wide, then you size the control to the data, it will show the scroll bars.
To fix this, change the "Column Width" property under the format tab to something really small, then play around with this property and the size of the listbox control until you get it how you want, and no scroll bars are displayed.

You need to set the property ListWidth of the listbox or combobox bigger than the property ColumnWidth.
The first being the size of what you show on screen,
and the second being the size of what you want to put inside the first.

As mentioned in other replies, this is a combination of the ColumnWidth and the Width. The main players are
ColumnCount: Listboxes allow the data to snake through multiple columns but that is a different story. For the simple case, set the Column Count to 1
Width: This is set by stretching the drawing
ColumnWidths: This will set the widths of the columns. In the simple case, find out what Width has been set to and subtract the scrollbar width from that value. By default, the Column Width is set to the Width. Since in also includes the size of the vertical scrollbar. The horizontal scrollbar appears if
((sum of columnwidths) + vertical scrollbar width) > (width / column count)
In the simple case, there is only one column width and only one column so the horizontal scrollbar will appear if
(columnwidths + vertical scrollbar width) > width
To find out the scrollbar width, drag a scrollbar on to the canvas. Scroll to the bottom of the properties and find the width. In my case it is 12.75 - make it 12 to simplify the arithmetic.
Worked Example:
Column Count = 1
Width = 48pt
Column Widths = 48 - 12 = 36pt

Try making the listbox a little wider.... not mucn wider, but just enough to get rid of the horizontal scroll bar.
Maybe that will work.

Click on the Userform. Under the Property Stats, look for KeepScrollBarsVisible.
Change it to 0 - fmScrollBarsNone
I was working with this for two hours - trying to find the answer in the ListBox. It is NOT there!
Jim

I declared columnwidth in start of form and it works like a charm!

The technique that actually worked for me was to set ColumnWidths property in section Data to a smaller number than the property Width in Position section. In the image below I set 30pt size on ColumnWidths which is smaller than number 40 in property Width. Please find an image showing both properties. I hope this helps.

Related

Tabulator : Stretch Last Row

In Tabulator there is an option for the columns to "Fit Columns to Data and Stretch Last Column".
I would like a similar behaviour for rows, the last row stretching to fit the table and fill the height.
The height and data in my table are dynamic so my desired behaviour:
if there are more rows than can fit in the parent div show scroll bars
if the height of the parent div is more than the number of rows, then stretch the last one
Is this possible?
This is not an available option in Tabulator, and i would argue it would make for terrible UI as stretching the row could lead to all sorts of unpleasant side effects depending on the formatter you are using.
There are two more visually appealing options that may work
Background colour
It would be far better to change the background colour of the table to match the row colour so that you still achieve that full table look without stretching a row:
.tabulator{
background-color:#fff;
}
Max Height
If you are concered about too much whitespace in the table, then instead of defining a table height, you could define the maxHeight, that way the table would scroll when there was enough rows and shrink when there aren't.
var table = new Tabulator("#example-table", {
maxHeight:300, //maximum height for the table is 300px
});

Extend two colors bars across full width of browser?

I have two boxes filled with colors, a green one on the left, and gray one on the right. They go right up against each other in the middle of the screen, and I would like each one to extend the width of the browser, so the green one extends all the way to the left, and the gray one extends all the way to the right, no matter how wide the browser gets. How can I do this?
the width property supports percentage values, which are relative to the size of the window it exists in.
See:
http://learnlayout.com/percent.html
http://www.w3schools.com/cssref/pr_dim_width.asp

Susy: fluid columns with fixed gutters?

I'm trying to build a 12 column grid with fluid columns and fixed gutters. Columns would change width as the window resizes, but the gutters would remain constant. Basically, percentage for columns, ems for gutters.
Is this possible with Susy?
You could use the padding as your gutter and would allow you to have a fixed "spacing" while keeping the fluid nature of the grid.
This would however force you to add extra markup if you need backgrounds that doesnt extend to the "gutter" area.

Fixed Width (position:fixed) -- Fluid Width (scrollable) -- Fixed Width (scrollable)

Alright, I have this issue, but whenever I want to search "fixed-fluid-fixed" it brings back fixed width on the first column, not position fixed.
How do I get a 3 column layout that is like this:
https://dl.dropbox.com/u/1331627/layout.jpg
Everything I've seen has floats on everything, but that seems to screw up the fixed position menu on the right.
I'd like to have the images scale by themselves and have a fixed width 3rd column. The 2nd and 3rd columns scroll together.
Stumped.

Excel: Stretching a graph on x axis

In my graph, the x axis are text values. When I make the graph, I cannot stretch it to the whole width. Instead, it takes only less than half of the width.
I usually do this by clicking on "Format Axis", but it doesn't offer that in this case.
Here is the screenshot:
I'm using Excel for Mac.
When you made the chart, did you select a bunch of empty rows below the range that actually contains data? Looks like twice as much empty data as data with values.
If you select the plot area or chart area, you can see the source data of the chart highlighted in the sheet. You can resize the highlighted range with the mouse to modify the amount of data in the chart.
Did they made different types for windows and mac? I'm using windows and scaling is never a problem here.
I can't give you any answer but I can give you a suggestion. Can you check the width of the numbers below the 'Number of public SLA templates' label? Its occupying all the width of your window.

Resources