macro refesh

eddieque

New Member
Joined
Feb 18, 2002
Messages
26
I am importing data from access 2000 into an excel 2000 spread sheet. I am getting the data there from data/get external data/run new query. I save the query.
I want to refresh the data. When this happens the column headings get changed from total sales to SUMOF total sales, which is the name inthe access data base. Even when i write a macro to handle the refresh and to change the column heading to total sales it still goes back to this SUMOF.
Anyway to prevent this or to get it to go back to total sales ?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
It is much simpler to Export from Access to Excel.

Go to Macro's tab in Access click new. Then on the "Action" Line select "Transfer Spreadsheet"

In the Arguments below select Export, type in the name of your query( says table name)
and the Path to where you want to export to.

you can tie it in with a button on a form

Oh I always change those "Sum Of..." by going to the field in design view of query. right click field and select properties type in a name under Caption.

Ziggy
 
Upvote 0

Forum statistics

Threads
1,223,355
Messages
6,171,610
Members
452,411
Latest member
sprichwort

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