Appointment form customized and face problems

G

Guest

I have customised the outlook appointment form and published the same in the
Organization Forms Library.

I now open the form and create an appoiment such that it makes an entry in
my calendar.

Now i double click the caledar entry in order to open the customsed app.
form but i get the error "Enable or Disable macros" - What could be the
possible reasons ?

Also when i create such appoinments they come into the calendar folder in
the pst i created and not into the exchange server calendar . What do i do to
change this behaviour ?
 
S

Sue Mosher [MVP-Outlook]

Are you using a very old version of Outlook? Do you see the Help | About This Form dialog on that calendar entry?
Also when i create such appoinments they come into the calendar folder in
the pst i created and not into the exchange server calendar . What do i do to
change this behaviour ?

Make the Exchange server mailbox the default informaton store, rather than the .pst file.

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

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

Guest

I am using MS Outlook 2000 SR-1. I do not see Help | About This Form dialog
on that calendar entry.

I still get the error message - Enable/Disable macros while trying to open
this form from the Calendar.Please do let me know of possible
solutions/work-arounds

Also face yet another problem that of a calendar having appoinment entries
prior to the form customization. In such a case the previous entries would
not have the customised fields i am looking for. How do i handle the same in
the VBScript code such that i can skip such entries ?

-Safal
 
S

Sue Mosher [MVP-Outlook]

Outlook 2000 SR-1 indeed is very old. The symptoms you are seeing are the result of having a form "one-off" so that it becomes embedded in the item. This breaks the connection to the published form and also causes the macro security prompt you're seeing. There are many possible causes for one-offing, especially in that older version. You'll see to determine which applies to your form and fix it; see http://www.outlookcode.com/d/formpub.htm#macro
How do i handle the same in
the VBScript code such that i can skip such entries ?

Show a code snippet to illustrate where it's causing you a problem.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

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

Guest

Here is the code i am using -

'Set reference to default Calendar folder
Set nms = Application.GetNamespace("MAPI")
Set fld = nms.GetDefaultFolder(9)
For Each itm in itms
If Not IsObject(itm.UserProperties("Tasks")) Then
MsgBox "Tasks-" & itm.UserProperties("Tasks").Value
End If
Next

My assumption was IsObject(itm.UserProperties("Tasks")) fails for those
entries in the calendar that were made prior to adding the customized field.
But i was wrong as i get into that loop for every item on the calendar and an
error shows up on the line "itm.UserProperties("Tasks").Value". But if i skip
those entries and check for the latest entries the same works fine.

-Safal
 
S

Sue Mosher [MVP-Outlook]

This would be the correct code to ignore items without the custom property:

On Error Resume Next
For Each itm in itms
Set prop = itm.UserProperties("Tasks")
If Not prop Is Nothing Then
MsgBox "Tasks-" & prop.Value
End If
Next

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

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

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