Private Sub LoadList_Click()
    lstList.Clear
    CmDialog1.DialogTitle = "Load Your List"
    CmDialog1.InitDir = App.Path
    CmDialog1.flags = &H4
    CmDialog1.Filter = "Lists (*.txt)|*.txt|All Files(*.*)|*.*"
    CmDialog1.ShowOpen
    Call xLoadList(CmDialog1.FileName, lstList)
End Sub

when i try to compile my program it says "argument not optional" and highlights "Call xLoadList". will someone help me with this? thanks

do you have a sub or function with the name of xLoadList? If so, please post the code for that as well. If NOT, then the problem is you have an X before loadList ;)

thanks for the help but i decided to do it another way since this way didn't seem to be working.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.