News

Based on your connection string, you are using Excel 2007 or greater. But I guess that is apparent too by the .xlsx file extension. Did you verify the FilePath variable is correct?
Don't struggle to pass strings. Instead, apply these five simple rules when working with embedded strings in VBA.