I'm trying update a cell within an Excel 2003 spreadsheet, but the problem that I'm having is that Excel adds a single quote to the front of my value. Is there any way to enter the value as an integer and not as an escaped string?
Thanks!!
Const filePath = "C:\1.xls"
Dim ado: Set ado = CreateObject("ADODB.Connection")
ado.ConnectionString = "Provider=Microsoft.JET.OLEDB.4.0;Data Source=""" _
& filePath & """;Extended Properties=""Excel 8.0;HDR=No"";"
ado.CursorLocation = 3
ado.Open
ado.Execute "UPDATE [Sheet1$A1:A1] SET F1 = 1;"
ado.Close
The above code updates cell A1 to '1