A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Populating CC field from dropdown box. Operation failed error on s



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 29th 06, 03:36 PM posted to microsoft.public.outlook.program_forms
Yvetta
external usenet poster
 
Posts: 7
Default Populating CC field from dropdown box. Operation failed error on s

In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta
Ads
  #2  
Old March 29th 06, 08:06 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Populating CC field from dropdown box. Operation failed error on s

Are you resolving the recipients with Check Names before you send?

What version of Outlook? Is this a form for internal use only?

--
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

"Yvetta" wrote in message ...
In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta

  #3  
Old March 29th 06, 08:53 PM posted to microsoft.public.outlook.program_forms
Yvetta
external usenet poster
 
Posts: 7
Default Populating CC field from dropdown box. Operation failed error

I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.

Thanks for any help you can give,
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

Are you resolving the recipients with Check Names before you send?

What version of Outlook? Is this a form for internal use only?

--
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

"Yvetta" wrote in message ...
In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta


  #4  
Old March 29th 06, 09:24 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Populating CC field from dropdown box. Operation failed error

I was suggesting that you test first by manually clicking the Check Names button to see if the name you have in mind will resolve manually. If it doesn't resolve manually, it won't resolve programmatically either.
--
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

"Yvetta" wrote in message ...
I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.


In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta


  #5  
Old March 29th 06, 11:13 PM posted to microsoft.public.outlook.program_forms
Yvetta
external usenet poster
 
Posts: 7
Default Populating CC field from dropdown box. Operation failed error

Unfortunately, clicking on the Check Names button does not resolve the name.
It's very confusing that it would not even send to a valid email address.
I'll have to rethink this and see if I can come up with a different way of
accomplishing what the user wants.

Anyway, thanks for your time. It's great to have this forum and people like
yourself who are willing to help.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

I was suggesting that you test first by manually clicking the Check Names button to see if the name you have in mind will resolve manually. If it doesn't resolve manually, it won't resolve programmatically either.
--
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

"Yvetta" wrote in message ...
I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.


In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta


  #6  
Old March 29th 06, 11:39 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Populating CC field from dropdown box. Operation failed error

It would certainly be possible with code behind the form if you want to go that route.

--
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

"Yvetta" wrote in message news
Unfortunately, clicking on the Check Names button does not resolve the name.
It's very confusing that it would not even send to a valid email address.
I'll have to rethink this and see if I can come up with a different way of
accomplishing what the user wants.

Anyway, thanks for your time. It's great to have this forum and people like
yourself who are willing to help.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

I was suggesting that you test first by manually clicking the Check Names button to see if the name you have in mind will resolve manually. If it doesn't resolve manually, it won't resolve programmatically either.


"Yvetta" wrote in message ...
I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.


In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta


  #7  
Old March 30th 06, 05:16 PM posted to microsoft.public.outlook.program_forms
Yvetta
external usenet poster
 
Posts: 7
Default Populating CC field from dropdown box. Operation failed error

I'd definitely be interested if you could help me out with that.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

It would certainly be possible with code behind the form if you want to go that route.

--
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

"Yvetta" wrote in message news
Unfortunately, clicking on the Check Names button does not resolve the name.
It's very confusing that it would not even send to a valid email address.
I'll have to rethink this and see if I can come up with a different way of
accomplishing what the user wants.

Anyway, thanks for your time. It's great to have this forum and people like
yourself who are willing to help.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

I was suggesting that you test first by manually clicking the Check Names button to see if the name you have in mind will resolve manually. If it doesn't resolve manually, it won't resolve programmatically either.


"Yvetta" wrote in message ...
I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.


In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta



  #8  
Old March 30th 06, 06:45 PM posted to microsoft.public.outlook.program_forms
Yvetta
external usenet poster
 
Posts: 7
Default Populating CC field from dropdown box. Operation failed error

Strange thing happened. I was testing another part of this form and had
clicked on Run This Form, then I had to step away from my desk for a while.
When I came back, the name had been resolved. Apparently, there is a timing
factor somehow involved. Any thoughts on that? Anyway to have it resolve more
quickly?
--
Yvetta


"Yvetta" wrote:

I'd definitely be interested if you could help me out with that.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

It would certainly be possible with code behind the form if you want to go that route.

--
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

"Yvetta" wrote in message news
Unfortunately, clicking on the Check Names button does not resolve the name.
It's very confusing that it would not even send to a valid email address.
I'll have to rethink this and see if I can come up with a different way of
accomplishing what the user wants.

Anyway, thanks for your time. It's great to have this forum and people like
yourself who are willing to help.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

I was suggesting that you test first by manually clicking the Check Names button to see if the name you have in mind will resolve manually. If it doesn't resolve manually, it won't resolve programmatically either.


"Yvetta" wrote in message ...
I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.


In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta



  #9  
Old March 31st 06, 03:30 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Populating CC field from dropdown box. Operation failed error

You should be able to resolve names manually by clicking the Check Names button on the toolbar. What happens when you try?

Assuming the user can choose only one sponsor, you could put this code in the Item_Send event handler for the form:

Function Item_Send()
Const olCC = 2
Set recip = Item.Recipients.Add(Item.UserProperties("Sponsor") )
If recip.Resolve Then
recip.Type = olCc
Else
Item_Send = False
recip.Delete
MsgBox "The sponsor name -- " & _
Item.UserProperties("Sponsor") & _
" -- could not be resolved to an address."
End If
End Function

--
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

"Yvetta" wrote in message ...
Strange thing happened. I was testing another part of this form and had
clicked on Run This Form, then I had to step away from my desk for a while.
When I came back, the name had been resolved. Apparently, there is a timing
factor somehow involved. Any thoughts on that? Anyway to have it resolve more
quickly?
--
Yvetta


"Yvetta" wrote:

I'd definitely be interested if you could help me out with that.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

It would certainly be possible with code behind the form if you want to go that route.

"Yvetta" wrote in message news Unfortunately, clicking on the Check Names button does not resolve the name.
It's very confusing that it would not even send to a valid email address.
I'll have to rethink this and see if I can come up with a different way of
accomplishing what the user wants.

Anyway, thanks for your time. It's great to have this forum and people like
yourself who are willing to help.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

I was suggesting that you test first by manually clicking the Check Names button to see if the name you have in mind will resolve manually. If it doesn't resolve manually, it won't resolve programmatically either.

"Yvetta" wrote in message ...
I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.


In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta



  #10  
Old April 7th 06, 06:28 PM posted to microsoft.public.outlook.program_forms
Yvetta
external usenet poster
 
Posts: 7
Default Populating CC field from dropdown box. Operation failed error

Sorry it has taken me so long to get back to you on this. I had to drop this
for awhile to work on other projects.

This script worked perfectly. What a relief for me and my customer. Thanks
so much for your help.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

You should be able to resolve names manually by clicking the Check Names button on the toolbar. What happens when you try?

Assuming the user can choose only one sponsor, you could put this code in the Item_Send event handler for the form:

Function Item_Send()
Const olCC = 2
Set recip = Item.Recipients.Add(Item.UserProperties("Sponsor") )
If recip.Resolve Then
recip.Type = olCc
Else
Item_Send = False
recip.Delete
MsgBox "The sponsor name -- " & _
Item.UserProperties("Sponsor") & _
" -- could not be resolved to an address."
End If
End Function

--
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

"Yvetta" wrote in message ...
Strange thing happened. I was testing another part of this form and had
clicked on Run This Form, then I had to step away from my desk for a while.
When I came back, the name had been resolved. Apparently, there is a timing
factor somehow involved. Any thoughts on that? Anyway to have it resolve more
quickly?
--
Yvetta


"Yvetta" wrote:

I'd definitely be interested if you could help me out with that.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

It would certainly be possible with code behind the form if you want to go that route.

"Yvetta" wrote in message news Unfortunately, clicking on the Check Names button does not resolve the name.
It's very confusing that it would not even send to a valid email address.
I'll have to rethink this and see if I can come up with a different way of
accomplishing what the user wants.

Anyway, thanks for your time. It's great to have this forum and people like
yourself who are willing to help.
--
Yvetta


"Sue Mosher [MVP-Outlook]" wrote:

I was suggesting that you test first by manually clicking the Check Names button to see if the name you have in mind will resolve manually. If it doesn't resolve manually, it won't resolve programmatically either.

"Yvetta" wrote in message ...
I would very much appreciate any code necessary for resolving the recipients
as you mention below. I have been looking through the books I have, and
figured that is probably what I need, but have not been able to work it out
for myself. I don't have any kind of programming background, so I pretty much
stumble through that.

We are on Outlook 2003. This will be an internal form, and will be published
to the Organizational Forms Library. Right now, I am just testing it myself.


In a custom Outlook message form, I am populating the CC field with a name
selected from a dropdown list by checking the "Set the initial value of this
field to:" checkbox on the Value properties tab of the CC field and inserting
the dropdown list name [Sponsor]. I have selected the radio button "Calculate
this formula automatically".

This works correctly. The selected name is inserted in the CC field once the
selection is made in the dropdown list. However, when the Send button is
clicked, I get an "Operation has failed" message. I have tried several
different ways of listing the names in the dropdown list, even using the SMTP
email address, but nothing works.

Can anyone help me with this problem?

Thanks in advance,
--
Yvetta




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot receive mail using Outlook - error "The operation failed. phil Outlook - Installation 0 February 14th 06 10:38 PM
OPERATION FAILED error when opening calendar entries Austin Outlook - Calandaring 0 February 1st 06 09:36 PM
Outlook 2000 error The Operation Failed Bonnie Outlook - General Queries 1 January 23rd 06 04:17 PM
Error message0x8004010f Operation Failed Jay Thomas Outlook - General Queries 4 January 11th 06 07:11 PM
Operation failed in Bcc field Simone Add-ins for Outlook 2 January 11th 06 08:27 AM


All times are GMT +1. The time now is 07:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.