我有一个VBA模块,当前将多个Access表导出到Excel工作表。
有没有办法有选择地导出列,以便只导出少数几个?
这是一张Excel工作表的当前代码:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tChart1_Reportable", SavePath, False, "Campus1"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tChart2_Reportable", SavePath, False, "Campus2"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tChart4_Reportable", SavePath, False, "Campus3"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tChart9_Reportable", SavePath, False, "Campus4"