I have a form that has on listbox, and I have several queries that display results in one listbox. It works well. Now I have created a query that will not fit into the list box and I want to resize it; Here is code I have used:
after the dimensions in the height and width rows I've tried " and in and neither worked. I created a listbox and stretched it to the size I wanted, copied the dimensions and put them in the code for the original listbox with no result. I am wondering if it's even possible to resize a listbox in VBA.
Code:
Me.List115.Visible = True
Me.List115.Height = 2.5826
Me.List115.Width = 10
Me.List115.RowSourceType = "Table/Query"
Me.List115.RowSource = "QryGroupbyCompany"
Me.List115.ColumnCount = 8
after the dimensions in the height and width rows I've tried " and in and neither worked. I created a listbox and stretched it to the size I wanted, copied the dimensions and put them in the code for the original listbox with no result. I am wondering if it's even possible to resize a listbox in VBA.