PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
form not working
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
form not working
![]() |
form not working |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 >> > >> |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 >> > >> |
|
|
|
#6 |
|
Guest
Posts: n/a
|
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 >>> > >>> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

