I don't have any formatting in the template file. Access exports the data to a new tab called "Deferred". With the export, all the content has a yellow fill. I don't understand why/where it is setting those properties. Is it in the VBA code or how do I find where this is being controlled?
Dim str_office_loc As String, oldPath As String, newPath As String, fs As Object
Dim MyXL As Object
Set MyXL = CreateObject("Excel.Application")
Template = ".....Award File Template.xlsx"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Qry_CopyDeferred_Award_Data", Data, True, "Deferred"
Edit:
Also posted in Excel forum: https://www.mrexcel.com/forum/excel...port-formats-all-content-yellow-fill-why.html
Dim str_office_loc As String, oldPath As String, newPath As String, fs As Object
Dim MyXL As Object
Set MyXL = CreateObject("Excel.Application")
Template = ".....Award File Template.xlsx"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Qry_CopyDeferred_Award_Data", Data, True, "Deferred"
Edit:
Also posted in Excel forum: https://www.mrexcel.com/forum/excel...port-formats-all-content-yellow-fill-why.html
Last edited by a moderator: