Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cizzo - 27 Nov 2007 15:59 GMT
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.
Gord Dibben - 27 Nov 2007 16:53 GMT
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

>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.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.