Help Detecting when the PhoneX selection is changed

D

David

Hi All

How can you detect when the user changes 1 of the 4 phone selectors on a
Contact form?

I know that the following does NOT work.

Sub Phone1_PropertyChange(ByVal Name)
....
End Sub

Any help would be appricated.

Thanks
 
S

Sue Mosher [MVP-Outlook]

You can create a custom formula property that uses [Phone 1 Selector] for
its formula, then watch for the CustomPropertyChange event. Unfortunately,
that event may fire as many as 9 times for one selection change, so it's not
really very useful. That's the best I've been able to come up with so far.

FYI, see http://www.outlookcode.com/d/propsyntax.htm for the correct usage
of the PropertyChange and CustomPropertyChange events.
 
D

David

I added the [Phone 1 Selector] to the formula proptery and I added the
suggested code:

Sub Item_PropertyChange(ByVal Name)
MsgBox "The " & Name & " property changed."
End Sub

Sub Item_CustomPropertyChange(ByVal Name)
MsgBox "The " & Name & " custom property changed."
End Sub

To see all the property changes but I only see a "ConversationIndex" change
when a new contact is created. Changing any of the phone selectors, e.g.
changing "Business" to "Assistant", doesnt fire any change messages.

BTW, I am using Outlook 2000. What am I doing wrong?


Sue Mosher said:
You can create a custom formula property that uses [Phone 1 Selector] for
its formula, then watch for the CustomPropertyChange event. Unfortunately,
that event may fire as many as 9 times for one selection change, so it's not
really very useful. That's the best I've been able to come up with so far.

FYI, see http://www.outlookcode.com/d/propsyntax.htm for the correct usage
of the PropertyChange and CustomPropertyChange events.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



David said:
Hi All

How can you detect when the user changes 1 of the 4 phone selectors on a
Contact form?

I know that the following does NOT work.

Sub Phone1_PropertyChange(ByVal Name)
...
End Sub

Any help would be appricated.

Thanks
 
S

Sue Mosher [MVP-Outlook]

Instead of creating a formula property, try using a text box bound to a
normal custom text property and set a formula on the Value tab of the
control.

In any case, as I said, I think this is a dead end.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



David said:
I added the [Phone 1 Selector] to the formula proptery and I added the
suggested code:

Sub Item_PropertyChange(ByVal Name)
MsgBox "The " & Name & " property changed."
End Sub

Sub Item_CustomPropertyChange(ByVal Name)
MsgBox "The " & Name & " custom property changed."
End Sub

To see all the property changes but I only see a "ConversationIndex" change
when a new contact is created. Changing any of the phone selectors, e.g.
changing "Business" to "Assistant", doesnt fire any change messages.

BTW, I am using Outlook 2000. What am I doing wrong?


Sue Mosher said:
You can create a custom formula property that uses [Phone 1 Selector] for
its formula, then watch for the CustomPropertyChange event. Unfortunately,
that event may fire as many as 9 times for one selection change, so it's not
really very useful. That's the best I've been able to come up with so far.

FYI, see http://www.outlookcode.com/d/propsyntax.htm for the correct usage
of the PropertyChange and CustomPropertyChange events.

David said:
Hi All

How can you detect when the user changes 1 of the 4 phone selectors on a
Contact form?

I know that the following does NOT work.

Sub Phone1_PropertyChange(ByVal Name)
...
End Sub

Any help would be appricated.

Thanks
 

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