Outlook2003 and /altvba switch not working

F

Frank

I am using the command line switch /altvba and specifying an OTM file
that is essentially empty. (The empty file was created by Outlook.)

However, when Outlook starts, it is using a different OTM file. I know
this because I can access macros that are not defined in the "empty" OTM
file specified with /altvba.

What can I do to correct this problem?

Thanks,

Frank
 
P

Peter Huang [MSFT]

Hi

Based on my test, I can not reproduce the problem.
I have followed the KB to create another otm file.
And after I use the /altvba, outlook will load the otm file I indicated in
the /altvba.
e.g.
outlook /altvba "<path>\VbaProject_Test.OTM"

OL2000: Managing and Distributing Outlook VBA Projects
http://support.microsoft.com/?kbid=229911

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
F

Frank

Peter said:
Hi

Based on my test, I can not reproduce the problem.
I have followed the KB to create another otm file.
And after I use the /altvba, outlook will load the otm file I indicated in
the /altvba.
e.g.
outlook /altvba "<path>\VbaProject_Test.OTM"

OL2000: Managing and Distributing Outlook VBA Projects
http://support.microsoft.com/?kbid=229911

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
I can easily reproduce the problem. It may be related to using Outlook
for a certain profile, and then closing Outlook and switching to another
profile. In any event, when I open Outlook, and go to the Visual Basic
Editor, the OTM file used is wrong.

Here is a sample command line that opens the wrong OTM file:

"D:\Program Files\Microsoft Office\OFFICE11\outlook.exe" /Profile
"Exch2000 - Frank" /altvba "C:\Documents and
Settings\Frank.CHAPURAINC\Application
Data\Microsoft\Outlook\VbaProject_empty.OTM"

The "VbaProject_empty.OTM" file is empty as the name implies, and does
not contain any macros. However, when I run this command, a startup
macro from the "VbaProject.OTM" file (in the same folder) is being executed.

Outlook does open the correct profile.

Thanks,

Frank
 
P

Peter Huang [MSFT]

Hi

It is strange that based on my test, I still can not reproduce the problem.
Also this newsgroup is mainly discussing about programmatically automation
office product.
e.g. How to use VB/Vb.NET... programming language to manipulate the Office
Produce Object Modal to do some job.
For the issue, it seems to be more related with how to use Outlook, you may
try to post in the outlook newsgroup.
microsoft.public.outlook
or
microsoft.public.outlook.general

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top