Solved

I have exported a lot of Outlook Macros to Bas files. Now how can i import all Bas files into the outlook moodules in one shot.

Posted on 2008-10-24
5
688 Views
Last Modified: 2012-05-05
Hi,

I have exported a lot of Outlook Macros to Bas files. Now how can i import all Bas files into the outlook moodules in one shot.
Is there a inbuilt way or a script that can do this

Regards
Sharath
0
Comment
Question by:bsharath
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 22798757
Sharath,

This process cannot be scripted.  If you open the VB editor, you can click File > Import File and pull files back in.  I expect you can select more than one file at a time, but I'm not certain.
0
 
LVL 11

Author Comment

by:bsharath
ID: 22798781
No it only alows to select 1 bas file at a time.

In times when the machine is rebuilt or given the bas files to others it becomes difficult to import 1 by 1...

Any other ideas...
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 22799138
There aren't any other options.  I suppose you could use copy and paste to merge all of your bas files into a single file and then import it.  That might not work well though since it'd dump all of your code into a single module.  

When I move to a new computer or rebuild my existing one, I make a copy of the Outlook file that stores the code and drop it on the new system  No importing or exporting.  That file is named VbaProject.OTM and is in the folder C:\Documents and Settings\<username>\Application Data\Microsoft\Outlook.  Part of that path is in a hidden folder, so be sure to set Explorer to view hidden files and folders.
0
 
LVL 11

Author Comment

by:bsharath
ID: 22799179
Thank U ...Thats a good idea...
0
 
LVL 76

Expert Comment

by:David Lee
ID: 22799325
You're welcome.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now