How to add a macro (.bas) file in Excel?

C

cizzo

I am running Excel 2003. I need to import a .bas file as a button so
that it can be used on all worksheets/books. I am aware of the visual
basic editor and importing a file, but what do I do from there.

Thank you in advance.
 
G

Gord Dibben

If you want the macro to be available for all workbooks, with Personal.xls open
go to the VBE and select Personal.xls and import the *.bas file to that
workbook.

Or create a new workbook, import the *.bas file then save the new file as an
Add-in which can be loaded through Tools>Add-ins.

Assign the macro to a button, either on a Toolbar or on a sheet.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top