M
Mike
Can anyone help me with some VBA for exporting to excel.
Right now I use the code below to create a spreadsheet
from a crosstab query.
DoCmd.OutputTo
acOutputQuery, "qryOpenPBConPriorityCountCrosstab",
acFormatXLS, "P:\Folder\PBContractorOpenItemCount", -1
What I need to do is include VBA to format the
spreadsheet. I need to insert a header with a title and
file export date. I would also like to insert a sum
formula to sum up the values of the columns. I have a
formula to sum across rows in the query, but not down a
column.
Your help is greatly appreciated
Mike
Right now I use the code below to create a spreadsheet
from a crosstab query.
DoCmd.OutputTo
acOutputQuery, "qryOpenPBConPriorityCountCrosstab",
acFormatXLS, "P:\Folder\PBContractorOpenItemCount", -1
What I need to do is include VBA to format the
spreadsheet. I need to insert a header with a title and
file export date. I would also like to insert a sum
formula to sum up the values of the columns. I have a
formula to sum across rows in the query, but not down a
column.
Your help is greatly appreciated
Mike