PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming form not working

Reply

form not working

 
Thread Tools Rate Thread
Old 18-12-2005, 03:11 PM   #1
=?Utf-8?B?TGVl?=
Guest
 
Posts: n/a
Default form not working


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

  Reply With Quote
Old 19-12-2005, 02:07 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: form not working

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Lee" <Lee@discussions.microsoft.com> wrote in message news:C91A2B62-2E6E-41DE-99E8-A4EF68AE91AF@microsoft.com...
> 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
>

  Reply With Quote
Old 19-12-2005, 04:04 PM   #3
=?Utf-8?B?TGVl?=
Guest
 
Posts: n/a
Default Re: form not working

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

"Sue Mosher [MVP-Outlook]" wrote:

> 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
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Lee" <Lee@discussions.microsoft.com> wrote in message news:C91A2B62-2E6E-41DE-99E8-A4EF68AE91AF@microsoft.com...
> > 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
> >

>

  Reply With Quote
Old 19-12-2005, 07:14 PM   #4
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: form not working

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Lee" <Lee@discussions.microsoft.com> wrote in message news:A4D5DA5F-6E59-4A1C-8DAA-5A4424DC118D@microsoft.com...
>I publish the form in outlook, I even add the msgbox "test" statement in the
> code but when I run , nothing comes out.
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> Where did you publish the form? Code doesn't run on unpublished forms in Outlook 2003.
>>
>> "Lee" <Lee@discussions.microsoft.com> wrote in message news:C91A2B62-2E6E-41DE-99E8-A4EF68AE91AF@microsoft.com...
>> > 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
>> >

>>

  Reply With Quote
Old 16-01-2006, 09:47 PM   #5
Fidel
Guest
 
Posts: n/a
Default Re: form not working

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]" <suemvp@outlookcode.com> escribió en el mensaje
news:OMFh3BNBGHA.312@TK2MSFTNGP09.phx.gbl...
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Lee" <Lee@discussions.microsoft.com> wrote in message
news:A4D5DA5F-6E59-4A1C-8DAA-5A4424DC118D@microsoft.com...
>I publish the form in outlook, I even add the msgbox "test" statement in
>the
> code but when I run , nothing comes out.
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> Where did you publish the form? Code doesn't run on unpublished forms in
>> Outlook 2003.
>>
>> "Lee" <Lee@discussions.microsoft.com> wrote in message
>> news:C91A2B62-2E6E-41DE-99E8-A4EF68AE91AF@microsoft.com...
>> > 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
>> >

>>



  Reply With Quote
Old 18-01-2006, 04:24 PM   #6
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: form not working

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Fidel" <fidel__ramirez@hotmail.com> wrote in message news:O$w8zZuGGHA.1396@TK2MSFTNGP11.phx.gbl...
>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]" <suemvp@outlookcode.com> escribió en el mensaje
> news:OMFh3BNBGHA.312@TK2MSFTNGP09.phx.gbl...
> 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" <Lee@discussions.microsoft.com> wrote in message
> news:A4D5DA5F-6E59-4A1C-8DAA-5A4424DC118D@microsoft.com...
>>I publish the form in outlook, I even add the msgbox "test" statement in
>>the
>> code but when I run , nothing comes out.
>>
>> "Sue Mosher [MVP-Outlook]" wrote:
>>
>>> Where did you publish the form? Code doesn't run on unpublished forms in
>>> Outlook 2003.
>>>
>>> "Lee" <Lee@discussions.microsoft.com> wrote in message
>>> news:C91A2B62-2E6E-41DE-99E8-A4EF68AE91AF@microsoft.com...
>>> > 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
>>> >
>>>

>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off