I have some code that exports an Access table to an Excel workbook, and I would like to learn how to format the spreadsheet's appearence. Is the formatting something I can do within the export function? Or do I need a new piece of code to be called after the export function is called? If I need a separate function to be called after the export, can that function be performed by an Access Module? Or will it need to be contained in an Excel Macro? I'm not very familiar with VBA so please bear with me. Let's start with formatting the first row to be bold text. If I can accomplish this I should be able to figure out the rest.
Here is my export code:
How can I format the first row of Table1.xls to be bold font (preferably inside an Access module)?
Here is my export code:
Code:
Option Compare Database
Function Export_Table1()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Table1", "P:\Lapses\Table1.xls", True, "Table1"
End Function
How can I format the first row of Table1.xls to be bold font (preferably inside an Access module)?