open spreadsheet via dialogue

pb21

Registered User.
Local time
Today, 20:50
Joined
Nov 2, 2004
Messages
122
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
 
Last edited:
Searching the forum is a great way to discover and learn the answers to your Access programming questions.

I have a working example in my Browse [Find a directory or file] sample.
 

Users who are viewing this thread

Back
Top Bottom