put macro into MS Outlook 2000

D

David C

I have a file *.bas from a reliable colleague. How do I attach it to a
button on a toolbar?
Step 2 is OK - Tools Customize Commands Categories Macro select
but the list of macros in the commands pane is empty.

So how do I do step 1 - add the macro to the list ?
 
S

Sue Mosher [MVP-Outlook]

You need to run Outlook VBA and use its FIle | Import command.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sachin Sancheti

Make sure the subroutine in .bas file is public then you will find it
in the list of macros just drop it on the toolbar.
 
K

Ken Slovak - [MVP - Outlook]

Is this file in the Outlook VBA project? If not then use Alt+F11 to open the
VBA project. Select File, Import to import it. Make sure the macro is a
Public Sub that takes no input arguments. After doing that the macro will
appear for you.
 
D

David C

Thanks all. Answers worked for me !
Alt F11 to open VB editor. F4 then import from file.

Cheers.
 
Top