Ive searched hi & lo before posting.
Im connecting to a spreadsheet using ADO
dim CONN As ADODB.Connection, RS As ADODB.Recordset
I cannot use Microsoft Excel 9.0 Object Library because all PC's using this program will not have MSOffice, plus I dont want to worry about licensing issues..
I can read/write to the spreadsheet without any problem. The problem is I cannot format the cells. Everytime I write to the cell I overwrite the cells format with excel's default format. Does anyone know how to format a cell with the type of connection i'm using.
FYI:
RS.Open "SELECT * FROM [sheet1$a1:S118]", CONN, adOpenDynamic, adLockOptimistic
and
CONN.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & StrPath & "Escalation.xls;" & _
"Extended Properties=""Excel 8.0;HDR=Yes"""
Thanks in advance
Im connecting to a spreadsheet using ADO
dim CONN As ADODB.Connection, RS As ADODB.Recordset
I cannot use Microsoft Excel 9.0 Object Library because all PC's using this program will not have MSOffice, plus I dont want to worry about licensing issues..
I can read/write to the spreadsheet without any problem. The problem is I cannot format the cells. Everytime I write to the cell I overwrite the cells format with excel's default format. Does anyone know how to format a cell with the type of connection i'm using.
FYI:
RS.Open "SELECT * FROM [sheet1$a1:S118]", CONN, adOpenDynamic, adLockOptimistic
and
CONN.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & StrPath & "Escalation.xls;" & _
"Extended Properties=""Excel 8.0;HDR=Yes"""
Thanks in advance