Hello all,
Im displaying a report in excel.
below is my code:
Dim strPath As String
' Current path
strPath = CurrentProject. Path & "\Adhoc_Report. xls"
'New workbook object
Dim sh As Workbook
DoCmd.OutputTo acOutputTable, "test2", acFormatXLS, strPath, 1
'Setting obj
Set sh = CreateObject(st rPath)
'sh.ActiveSheet .Cells.EntireCo lumn.AutoFit
sh.ActiveSheet. Cells.ColumnWid th = 23
sh.ActiveSheet. Cells.EntireRow .AutoFit
The excel workbook is a Microsoft excel 5.0/95 Workbook.
But the system has the 2003 version installed.
cuz of this old version my report has cell limit of 255 only which truncatest the data.
I strongly believe I should be able to specify the version to be used in my code.
help with the code will be grately appreciated.
Thanks
Shaq
Im displaying a report in excel.
below is my code:
Dim strPath As String
' Current path
strPath = CurrentProject. Path & "\Adhoc_Report. xls"
'New workbook object
Dim sh As Workbook
DoCmd.OutputTo acOutputTable, "test2", acFormatXLS, strPath, 1
'Setting obj
Set sh = CreateObject(st rPath)
'sh.ActiveSheet .Cells.EntireCo lumn.AutoFit
sh.ActiveSheet. Cells.ColumnWid th = 23
sh.ActiveSheet. Cells.EntireRow .AutoFit
The excel workbook is a Microsoft excel 5.0/95 Workbook.
But the system has the 2003 version installed.
cuz of this old version my report has cell limit of 255 only which truncatest the data.
I strongly believe I should be able to specify the version to be used in my code.
help with the code will be grately appreciated.
Thanks
Shaq
Comment