ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Jet Engine MaxScanRows without an ini file or registry (https://www.excelbanter.com/excel-programming/439350-jet-engine-maxscanrows-without-ini-file-registry.html)

Phil Hibbs

Jet Engine MaxScanRows without an ini file or registry
 
I'm doing this:

oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\;" & _
"Extended Properties=""text;HDR=No;FMT=CSVDelimited"""

I want to set the "MaxScanRows=0" setting, but the only ways I can
find to do this are to edit the registry or create a .ini file, and I
don't want to do this - I want it all contained within the VBA. I
suppose I could set the registry in the VBA and then set it back
again, but if it crashes then that would leave a modified registry.
Also I might run into problems if someone does not have admin rights.

Phil Hibbs.


All times are GMT +1. The time now is 10:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com