Outlook disables my VBA macros for Word

J

jsbuch

I have created a toolbar using VBA for Word that enables 'smart client' data
exchange between Word and a set of web services The macros do not execute if
the client uses Word as his/her email editor with Outlook. The macros run
correctly in Word if the client is not running Outlook or if the email editor
in Outlook is something other than Word.

I have attempted changing the security setting in Word and in Outlook.
The macros are unsigned.

Please advise.

Thanks
John Buch
 
J

jsbuch

I should have mentioned that I am talking about Office 2003 professional.

John Buch
 
P

Peter Huang [MSFT]

Hi

I think we need to collect some information first.

1.How did you create the toolbar and attatch the event?
e.g. You did it in Document.Open or anything else.

2.You said when you open the email with word as editor,the macro will not
run. So in this scenario, was the toolbar created? or when you click the
button created, but the button_clicked event is not running.

3.Did you get any error? If yes, please post the exact error msg.

4. If you run a test macro in outlook VBA environment, did that work? I
just want to check if the outlook macro is running ok.

Also can you provide a simple reproduce code?

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.
 
J

jsbuch

Ok. I've boiled it down some.

Take this macro

Sub AutoExec()
MsgBox "Hello World!"
End Sub

Save it as a .dot.

I saved this template in my Word startup directory.

If I open a Word document, I see the "Hello World" message box as expected.

Go to Outlook and change Outlook to use Word as the email editor.
Close Outlook and reopen it.

Open a Word document. The "Hello World" message box is not displayed.

As for your questions.

1) I don't think this is related. I removed the toolbar in my example.
2) No macros run in the scenario
3) No errors
4) In Outlook, I added the macro and was able to run it. However, I then
closed and reopend Outlook. I tried to run the same macro and it would not
run. I received the following error.

"The macros in this project are disabled. Please refer to the online help
or documentation of the host application to determine how to enable macros."

John
 
R

raj

Peter,

Has Microsoft done anything to overcome known issue described in 209977?

regards

Raj
 

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