Exporting an Access Table to Excel with predefined headers

HKHESS

New Member
Joined
Feb 2, 2005
Messages
1
Hi!!

I need to export a Access table to excel file with prefined, formatted excel headers. Presently, I use TransferSpreadSheet command in an Access macro. However, once the table is exported, I then have to reformat the Excel tab with bolding, Autoformatting, etc.

How do I avoid the manual process of reformmating the excel file for every table I export from Access to Excel??

Note: I have hundreds (100s) of such tables......Tx
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Can't you do it the other way round?

That is import into Excel from Access.

If you were to do that you could record a macro to do the import and the formatting.

This could then be adapted to deal with all your tables.
 
Upvote 0
Re: Exporting an Access Table to Excel with predefined heade

I'd have to agree there, i was going to say record a macro to do it all for it, it will do it automatically with the press of a button (but u know that dont you). just record that macro, i dont see why you would have to do it in reverse, but it could be right.
Well thats all i got to say,
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

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