Message 1 of 6
ADO Connection Create File Excel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
How créate a ADO connection for create un file .XLS ?
I know how read a existing file XLS.
SQL command : SELEC * ... but if i use CREATE TABLE...
the vba say : the file open only in read.
dim strfile as string
Dim cnn As New ADODB.Connection
dim rs as new ADODB.Recordset
strfile=c:\mynewfile.xls
cnn.ConnectionString = "Driver={Microsoft Excel Driver (*.xls)};DBQ=" & strfile"
cnn.open
rs.open "Create table ..."
How create a file .XLS without the excel application ?
How créate a ADO connection for create un file .XLS ?
I know how read a existing file XLS.
SQL command : SELEC * ... but if i use CREATE TABLE...
the vba say : the file open only in read.
dim strfile as string
Dim cnn As New ADODB.Connection
dim rs as new ADODB.Recordset
strfile=c:\mynewfile.xls
cnn.ConnectionString = "Driver={Microsoft Excel Driver (*.xls)};DBQ=" & strfile"
cnn.open
rs.open "Create table ..."
How create a file .XLS without the excel application ?