G
Guest
With the Transferspreadsheet command or Output to, the columns in the Excel
files created has always a fixed length.
Is it possible to create the Excel file where the columns have the same
length as the table in Access?
See here the code:
DoCmd.OutputTo acOutputTable, "T_YTI", acFormatXLS, "D:/output.xls
or
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "T_YTI",
"D:\Output.XLS", True
I use Access and Excel 2000 under Windows XP
files created has always a fixed length.
Is it possible to create the Excel file where the columns have the same
length as the table in Access?
See here the code:
DoCmd.OutputTo acOutputTable, "T_YTI", acFormatXLS, "D:/output.xls
or
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "T_YTI",
"D:\Output.XLS", True
I use Access and Excel 2000 under Windows XP