Question: Editing Excel file from Access (Still needing assistance)
I am running an export to an excel file from access and after the export I need to open the file and apply formatting to it (format height/width of cells, do an auto filter, etc.)
I'm not sure how to get Access to open the file so that I can work with it. I know all the code for formatting the excel file, all I'm trying to figure out is how to get Access to interface.
I had found another thread here and this code was supposed to work but is erroring out with a user-defined type not defined error. Anyway here is just that code, minus all the excel macro stuff.
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Set xlApp = New Excel.Application
Set xlBook = xlApp.Workbook.Open("c:\rmexport.xls")
Any help would be appreciated.
I am running an export to an excel file from access and after the export I need to open the file and apply formatting to it (format height/width of cells, do an auto filter, etc.)
I'm not sure how to get Access to open the file so that I can work with it. I know all the code for formatting the excel file, all I'm trying to figure out is how to get Access to interface.
I had found another thread here and this code was supposed to work but is erroring out with a user-defined type not defined error. Anyway here is just that code, minus all the excel macro stuff.
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Set xlApp = New Excel.Application
Set xlBook = xlApp.Workbook.Open("c:\rmexport.xls")
Any help would be appreciated.
Last edited: