If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > very simple question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-04, 19:16
cpreece cpreece is offline
Registered User
 
Join Date: Mar 2004
Posts: 44
very simple question

I've created a table in Access that I need to export to an Excel sheet at the end of every month. After I export it, I need to format the headings centered and bold. I don't want to have to manually format it every time, so do I save the file as a template that can be overwritten with new data month to month?

Sorry for asking such a basic question but I really don't know.
Reply With Quote
  #2 (permalink)  
Old 04-20-04, 21:06
jnmurphy jnmurphy is offline
Registered User
 
Join Date: Apr 2004
Location: Bothell, WA
Posts: 4
very simple answer

Hi,

After you've exported your data to an Excel file, open it in Excel. Then go to Tools, Macros, Record Macro. Format your headers the way you want and then click on the Stop Recording button. Save the macro to your Personal.xls file and give it a name that you'll remember. Next month just open the new file in Excel and go to Tools, Macros, and select the macro you created and it will do the formatting for you.

This is assuming that your headers don't change over time.
Reply With Quote
  #3 (permalink)  
Old 04-20-04, 21:26
cpreece cpreece is offline
Registered User
 
Join Date: Mar 2004
Posts: 44
I've set up a macro in Access to transfer the table to the same Excel spreadsheet month after month, just overwriting the data but leaving the headers formatted.
Reply With Quote
  #4 (permalink)  
Old 04-21-04, 13:14
ray705 ray705 is offline
Registered User
 
Join Date: Feb 2003
Location: Wichita,KS
Posts: 44
This may be more than you want to do…
You can setup a spreadsheet with a macro that will attach to your database, run the query, and return the rows for you. Then have it format the headers and whatever else you want; like add totals at the end, make a chart, print, anything you would normally do after it is in Excel.
It takes some time to develop but then all you do is run the macro.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On