I have never used forms with VBA but am experienced in VB but what I would do in VB is not working in VBA.
I have a user-form called frmPrint with a listbox called lstReports.
From a separate procedure I call the form:
frmPrint.Show
I have a procedure in frmPrint:
Private Sub Form_Load()
'Load the ListBox with available reports...
lstReports.AddItem "Arrecap.xls"
lstReports.AddItem "Ar-Phy~2.xls"
lstReports.AddItem "Ar-Cli2.xls"
lstReports.AddItem "Trendd~1.xls"
lstReports.AddItem "Trendd~2.xls"
lstReports.AddItem "Arpaid.xls"
lstReports.AddItem "Payrchrg.xls"
lstReports.AddItem "Research.xls"
lstReports.AddItem "Ptrad.xls"
End Sub
This is apparently not the correct way to load the listbox because nothing is happening...
I have read about loading the list box from a spreadsheet data range(ControlSource), but I do not want to use that method.
Thanks for any suggestions.
I have a user-form called frmPrint with a listbox called lstReports.
From a separate procedure I call the form:
frmPrint.Show
I have a procedure in frmPrint:
Private Sub Form_Load()
'Load the ListBox with available reports...
lstReports.AddItem "Arrecap.xls"
lstReports.AddItem "Ar-Phy~2.xls"
lstReports.AddItem "Ar-Cli2.xls"
lstReports.AddItem "Trendd~1.xls"
lstReports.AddItem "Trendd~2.xls"
lstReports.AddItem "Arpaid.xls"
lstReports.AddItem "Payrchrg.xls"
lstReports.AddItem "Research.xls"
lstReports.AddItem "Ptrad.xls"
End Sub
This is apparently not the correct way to load the listbox because nothing is happening...
I have read about loading the list box from a spreadsheet data range(ControlSource), but I do not want to use that method.
Thanks for any suggestions.