Access to Excel query dump auto format in Excel

Babyhueyvfr

New Member
Joined
Oct 24, 2005
Messages
4
Ok I am sure this is simple to do in a complex way. I am working on a Access Data Base that tracks rent amounts for leases, and have several reports and queries that get dumped to excel by several users. These dumps don’t seem to look great when they are opened in excel, row and column widths and header formatting not what we want. I have coded a single macro that corrects all these formatting issues in all cases, in my Personal.XLS workbook. I can distribute that module out to the other users. My issue is I would like to make it transparent to them that it’s running. My thought is an macro in the personal.xls file that autoruns (need help with that as I have been unable to get it to run) that tests the file name (controlling that in Access) and if the test passes run the formatting code(modual 1) if not then it does nothing.

Can anyone help me down this path, or tell me my idea sucks and there is a very simple way to do this.

Thank you,
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
In the absence of other replies - I think the best way would be to simply have a button for them to click.
 
Upvote 0

Forum statistics

Threads
1,203,045
Messages
6,053,188
Members
444,644
Latest member
keepontruckinc4

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