PC Review


Reply
Thread Tools Rate Thread

Custom Contact form not working in added mailboxes

 
 
KFM
Guest
Posts: n/a
 
      4th Mar 2009
I've created a custom form for new contacts created in Outlook 2003.

The DateTime button (named CommandButton1), inserts a carriage return, a
datestamp, and then another carriage return after the end of the text in the
body of contact.

The VB code for this is
Code:
Sub StampDate()
Item.Body = Item.Body & vbCrLf & Now()& vbCrLf
End Sub

Sub CommandButton1_Click()
Call  StampDate()
End Sub
I've associated this with my contact forms in outlook, and it works just
fine when creating a new contact.

However, I've added another mailbox to the account I use in Outlook. I've
associated the same form with the contacts to this account, yet when I click
to DateTime button, nothing happens. I also tried clearing the custom forms
cache.

Does Item.Body not refer to the current object when I'm not using my primary
contact form? What is going on?



 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      5th Mar 2009
Extra steps are involved to get custom forms to run script on items in other
mailboxes. See http://outlookcode.com/article.aspx?id=67
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"KFM" wrote:

> I've created a custom form for new contacts created in Outlook 2003.
>
> The DateTime button (named CommandButton1), inserts a carriage return, a
> datestamp, and then another carriage return after the end of the text in the
> body of contact.
>
> The VB code for this is
>
Code:
> Sub StampDate()
> Item.Body = Item.Body & vbCrLf & Now()& vbCrLf
> End Sub
>
> Sub CommandButton1_Click()
> Call  StampDate()
> End Sub
>
>
> I've associated this with my contact forms in outlook, and it works just
> fine when creating a new contact.
>
> However, I've added another mailbox to the account I use in Outlook. I've
> associated the same form with the contacts to this account, yet when I click
> to DateTime button, nothing happens. I also tried clearing the custom forms
> cache.
>
> Does Item.Body not refer to the current object when I'm not using my primary
> contact form? What is going on?
>
>
>

 
Reply With Quote
 
KFM
Guest
Posts: n/a
 
      5th Mar 2009

Thank you so much! You may consider yourself a hero.
"Sue Mosher [MVP-Outlook]" wrote:

> Extra steps are involved to get custom forms to run script on items in other
> mailboxes. See http://outlookcode.com/article.aspx?id=67
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
>
>
> "KFM" wrote:
>
> > I've created a custom form for new contacts created in Outlook 2003.
> >
> > The DateTime button (named CommandButton1), inserts a carriage return, a
> > datestamp, and then another carriage return after the end of the text in the
> > body of contact.
> >
> > The VB code for this is
> >
Code:
> > Sub StampDate()
> > Item.Body = Item.Body & vbCrLf & Now()& vbCrLf
> > End Sub
> >
> > Sub CommandButton1_Click()
> > Call  StampDate()
> > End Sub
> >
> >
> > I've associated this with my contact forms in outlook, and it works just
> > fine when creating a new contact.
> >
> > However, I've added another mailbox to the account I use in Outlook. I've
> > associated the same form with the contacts to this account, yet when I click
> > to DateTime button, nothing happens. I also tried clearing the custom forms
> > cache.
> >
> > Does Item.Body not refer to the current object when I'm not using my primary
> > contact form? What is going on?
> >
> >
> >

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ALT key not working in custom tab page added into folder Propertie WLAN Microsoft Outlook Form Programming 1 21st Jan 2009 04:16 PM
Spellcheck is not working after I added custom dictionaries =?Utf-8?B?anVzdHNxdWlkZ2V5?= Microsoft Word Document Management 0 29th Oct 2007 04:31 PM
Clipboard in custom contact form not working =?Utf-8?B?QnJ5YW4=?= Microsoft Outlook 0 23rd Feb 2005 07:03 PM
How to programmatically access the content of a Keyword Custom-field added to a Contact Form msnews.microsoft.com Microsoft Outlook VBA Programming 1 2nd Feb 2004 10:08 PM
How to programmatically access the content of a Keyword Custom-field added to a Contact Form msnews.microsoft.com Microsoft Outlook Form Programming 1 2nd Feb 2004 01:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:54 AM.