Good Afternoon,
I am having an issue loading a userform with a listbox on.
It keeps giving the VB issues as "Run-time error'424': Object Required".
I think the line of code it is saying is the issues is the one below in RED.
Any help would be appreciated as the project is nearly done.
Many Thanks
I am having an issue loading a userform with a listbox on.
It keeps giving the VB issues as "Run-time error'424': Object Required".
I think the line of code it is saying is the issues is the one below in RED.
Any help would be appreciated as the project is nearly done.
Many Thanks
Rich (BB code):
Private Sub UserForm_Initialize()
ActiveSheet.AutoFilterMode = False
Workbooks.Open Filename:="C:\Users\MAZZA\Documents\Gavin\Car Park\FYVData.xls" 'Home
'Workbooks.Open Filename:="\\W2K6082\COMMON\SHARED\Gavin Mazza\Car Park\FYVData.xls"
With Stats.Range("B1:I14")
ListBox1.ColumnCount = .Columns.Count
ListBox1.List = .Value
End With
Dim Today
Today = Format(Now, "dd/mm/yyyy")
Me.TextBox1.Value = Today
Me.TextBox1.Locked = True
End Sub