Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have some macros saved as .bas files that people need to be able to import
into their Excel. Their experience on importing is limited, so I need to be able to explain to them how to import these files. Is there an easy way to import the .bas files into Excel? Thanks. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Daren,
Is there a specific file that you need to have the BAS imported into, or just have it available? In the first case, you could write a macro like this (with a reference set to MS VBA Extensibility) Sub AddModuleByImportToPersonalXLS() Dim myBook As Workbook Dim myFile As String myFile = "C:\Excel\myVBAFileName.bas" Set myBook = Workbooks("Personal.xls") myBook.VBProject.VBComponents.Import (myFile) End Sub If it just needs to be available, make your file into an add-in.... HTH, Bernie MS Excel MVP "Daren" wrote in message ... I have some macros saved as .bas files that people need to be able to import into their Excel. Their experience on importing is limited, so I need to be able to explain to them how to import these files. Is there an easy way to import the .bas files into Excel? Thanks. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You may find it easier to create a new workbook and put all the code you want to
share with the others in that new workbook's project. Then you can just share that workbook with others. Daren wrote: I have some macros saved as .bas files that people need to be able to import into their Excel. Their experience on importing is limited, so I need to be able to explain to them how to import these files. Is there an easy way to import the .bas files into Excel? Thanks. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Importing Macros into Excel | Excel Discussion (Misc queries) | |||
Macros - copying macros from one computer to another | Excel Discussion (Misc queries) | |||
"openinf file..."ENABLE MACROS...DISABLE MACROS" | Excel Discussion (Misc queries) | |||
Importing Tables from Access into Excel using Macros or VBA | Excel Discussion (Misc queries) | |||
Training: More on how to use macros in Excel: Recording Macros | Excel Worksheet Functions |