I have some code in Access that takes the results of a query and sends it to Excel in the proper format, but it throwing the following error:
Run-time error '1004'
Application-defined or object-defined error
The error is returned on the following line of code:
ExSheet.Range(Alpha & Col).EntireColumn.ColumnWidth = 10
Alpha is a variable that was setup to keep up with the alphabetic part of the cell address.
coachdan32
Run-time error '1004'
Application-defined or object-defined error
The error is returned on the following line of code:
ExSheet.Range(Alpha & Col).EntireColumn.ColumnWidth = 10
Alpha is a variable that was setup to keep up with the alphabetic part of the cell address.
coachdan32