Remove date and time from Access -> Excel export

odonnell

New Member
Joined
Mar 11, 2015
Messages
12
I have some vba exporting a report to excel, the code is
Code:
DoCmd.OutputTo acOutputReport, "Projects", acFormatXLS, _
"file path\data.xls",

This works fine, however when the sheet is open the headers are in row 2. the date and time of the export is in row 1.
How can I remove the date/time in the export process as this sheet is to be connected to another workbook to auto refresh and I need the headers in the 1st row?

Thanks guys
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Thanks for the info, I have tried this but no luck, i get an error error 3011 that it cant find my "Projects" report. maybe it doesnt work with reports??
 
Upvote 0

Forum statistics

Threads
1,221,854
Messages
6,162,450
Members
451,765
Latest member
craigvan888

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top