Hello everyone,
I have created a list box that is supposed lists all the excel files, but I am getting the above error.
Are they any other ways
Dim MyFile As String, Stsql As String
MyFile = Dir("O:\BACKLOG*.xls")
Stsql = MyFile & ";"
Do While Not (MyFile = "")
MyFile = Dir
Stsql = Stsql & MyFile & ";"
Loop
Me.cbolist.RowSource = Stsql
villica
I have created a list box that is supposed lists all the excel files, but I am getting the above error.
Are they any other ways
Dim MyFile As String, Stsql As String
MyFile = Dir("O:\BACKLOG*.xls")
Stsql = MyFile & ";"
Do While Not (MyFile = "")
MyFile = Dir
Stsql = Stsql & MyFile & ";"
Loop
Me.cbolist.RowSource = Stsql
villica