Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to add a Macro (.bas file) in Excel?

I am a newbie when it comes to this.
Someone has a macro as a .bas file.
How do I go about importing this as a button in excel?

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default How to add a Macro (.bas file) in Excel?

In the VBE select select File | Import and then browse to find the
appropriate .bas file.
--
HTH...

Jim Thomlinson


"cizzo" wrote:

I am a newbie when it comes to this.
Someone has a macro as a .bas file.
How do I go about importing this as a button in excel?

Thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default How to add a Macro (.bas file) in Excel?

I'm not sure about importing as a button, but to import a .bas file...in the
VBE go to File\Import, navigate to the folder location of the .bas file,
then click the OK button.

Maybe the .bas file has some commandbar code which creates a button?

"cizzo" wrote in message
...
I am a newbie when it comes to this.
Someone has a macro as a .bas file.
How do I go about importing this as a button in excel?

Thank you in advance.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel '00, 1st file has macros, how to stop macro in 2nd file? kaptandrews Excel Discussion (Misc queries) 0 May 24th 06 03:07 PM
how can i call macro in powerpoint file from excel file pm[_2_] Excel Programming 3 January 6th 06 10:40 PM
Macro to save Excel file with date and time in the file name? sonic_d_hog Excel Programming 2 January 5th 06 05:57 PM
Creating a new excel file from an existing file using macro Macro Excel Programming 2 July 28th 05 06:40 PM
VBA Macro to copy an column from one Excel file into another file Sam Excel Programming 4 July 3rd 05 03:36 AM


All times are GMT +1. The time now is 02:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"