I have the following code that allows me to get data from an excel spreadsheet:
Set objXLBook = GetObject("d:\Datastore\EIF.xls")
Set objXLApp = objXLBook.Parent
Set objQryStudentSheet = objXLBook.Worksheets("Student details")
Set objQuerySheet = objXLBook.Worksheets("Agent details")
I would like to however do it a little differently with the user selecting the file (spreadsheet) of their choice rather than having one location as each spreadsheet will be the same but for a different centre.
How do I do this and make the returned result an object as above?
help or direction would be much appreciated.
regards
Set objXLBook = GetObject("d:\Datastore\EIF.xls")
Set objXLApp = objXLBook.Parent
Set objQryStudentSheet = objXLBook.Worksheets("Student details")
Set objQuerySheet = objXLBook.Worksheets("Agent details")
I would like to however do it a little differently with the user selecting the file (spreadsheet) of their choice rather than having one location as each spreadsheet will be the same but for a different centre.
How do I do this and make the returned result an object as above?
help or direction would be much appreciated.
regards