form not working

L

Lee

Hi,

I am using outlook 2003 and I create a form and a button. On the button I
write a script to display the INBOX but nothing display when I click on the
button, pls advice anything wrong.


Set myNameSpace = Application.GetNameSpace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(6)
myFolder.Display
 
S

Sue Mosher [MVP-Outlook]

Where did you publish the form? Code doesn't run on unpublished forms in Outlook 2003.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Lee

I publish the form in outlook, I even add the msgbox "test" statement in the
code but when I run , nothing comes out.
 
S

Sue Mosher [MVP-Outlook]

You didn't check the "send form definition with item" box on the (Properties) page, did you? That one-offs the form so that code won't run.

You still didn't say where you published the form -- Personal Forms, Organizational Forms, a folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
F

Fidel

i got some in same case, i check the send form definition with item" box and
they are published in personal forms.

what can i do?




"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
You didn't check the "send form definition with item" box on the
(Properties) page, did you? That one-offs the form so that code won't run.

You still didn't say where you published the form -- Personal Forms,
Organizational Forms, a folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

As I said, if you check the "Send form definition with item" box, code on the form won't run. See http://www.outlookcode.com/d/secforms.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Fidel said:
i got some in same case, i check the send form definition with item" box and
they are published in personal forms.

what can i do?




"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
You didn't check the "send form definition with item" box on the
(Properties) page, did you? That one-offs the form so that code won't run.

You still didn't say where you published the form -- Personal Forms,
Organizational Forms, a folder.

Lee said:
I publish the form in outlook, I even add the msgbox "test" statement in
the
code but when I run , nothing comes out.
 

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