On the welcome page I have a button to open the file to read.
With dlgOpenDialog
.filter = "text(*.txt) |*.txt"
.InitialDirectory = Application.StartupPath
.ShowDialog()
strAddress = .Filename
End With
I want to pass the file name/location to another form where I will read in the comma delemited data into an array.
I have the new form as
Public objAddressForm as New String and the objAddressForm.show
The problem is when I try to pass strAddress it says "Too many arguments to "Public Sub Show()"
How can I get this to work? I don't know what I am doing wrong.


Reply With Quote