Unfortunately you did not attach your workbook, however your changes are simple enough.
The default workbook and worksheet are selected from sWB and the two combobox list indices. Here the first items in the lists after the prompt.
The column box displays the first item in the list because you don't have a header row in your worksheet. The column selected is the column displayed. This will be selected automatically if the workbook and worksheet are configured with your preferred defaults.
Public Sub Main()
Dim sWB As String: sWB = ThisDocument.Path & "\searchable.xlsm"
With frmExcelUserForm
If FileExists(sWB) Then
.TextWorkBook.text = sWB
.ComboWorksheet.ListIndex = 1
.ComboField.ListIndex = 1
End If
.show
End With
Unload frmExcelUserForm
End Sub
To start with the listbox filled with all the data, enable the lines commented out below.
Private Sub ComboField_Change()
' If ComboField.ListIndex > 0 Then
' xlFillList ListRecords, _
ComboField.ListIndex, _
TextWorkBook.text, _
ComboWorksheet.text, True, True, ComboField.text
' Else
ListRecords.Clear
' End If
lbl_Exit:
Exit Sub
End Sub
There's not much you can do with the cropping apart from making the listbox and form wider.
If you have any problems, post the workbook.