How to get macro in new workbook

PaulS

Board Regular
Joined
Feb 26, 2006
Messages
66
Hope one of the experts has a solution for my problem.
I have made a macro to run on a databasesheet.
This sheet is made by opening a csv file, that has been created by an administrative system. Most users have no knowledge of excel other than seeing this as a list of data to work on. However this file has to many lines. The macro creates a new sheet with an extract for that particular user.
Klicking on a csv file will open a new Excel sheet. My problem is how do I get the macro to work on that new database? This of course via a simple action to be perfomed by the enduser.
Thanks for your help,
Paul
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You could look at creating a personal macro workbook (personal.xls) for that user and then storing the macro within this workbook rather than the current one. That way, the macro (and any others you might choose to store there) will be available each time the user opens Excel.

You can create a personal.xls by recording a simple macro and in the 'record macro' dialog, set the 'store macro in' dropdown to 'personal macro workbook'.

HTH
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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