OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & spath & ";Persist Security Info=True")
Your connection string might be incorrect, it looks like it is missing some things.
Here is a good reference for connection strings:
http://www.connectionstrings.com/excel
Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 142
Skill Endorsements: 8
Question Answered as of 1 Year Ago by
catherine sea,
GeekByChoiCe,
Begginnerdev
and 2 others