?
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
Medium Priority
?
700 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
New style of hardware planning for Microsoft Exchange server.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
Suggested Courses

764 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