Automatically close form after sending

G

Guest

I am using the following code to send my form when the user clicks on a button. When the user clicks on the button, the form sends itself but then it remains open. The user has to close the form using the close button at the top of the form and also answer a 'Would you like to save changes?' dialog. Can anyone help me modify the code so that the form closes automatically after sending itself? Thanks!
Sub CommandButton1_Click()
Set myForward = Item.Forward
myForward.Recipients.Add "EmailAddyHere"
myForward.send

end Sub
 
S

Sue Mosher [MVP-Outlook]

Do you want the changes without the user's authorization? No changes saved
at all?

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



RogerC said:
I am using the following code to send my form when the user clicks on a
button. When the user clicks on the button, the form sends itself but then
it remains open. The user has to close the form using the close button at
the top of the form and also answer a 'Would you like to save changes?'
dialog. Can anyone help me modify the code so that the form closes
automatically after sending itself? Thanks!
 
S

Sue Mosher [MVP-Outlook]

Are all recipients using Outlook? Is this in an Exchange organization where
you can publish a form to the Organizational Forms library?

Also note: The newsgroup interface you are using apparently does not quote
earlier messages in the thread, making your latest message so short on
detail that you risk not getting the answer you're looking for. Please take
the time to quote the original message.


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



RogerC said:
My form has several textboxes and a list of questions with radio-buttons
to select an answer for each question. I want the user to open the form,
enter information into the textboxes, select 'yes or no' for each
radio-button and then have the form send their responses back to me. I
would like this to happen with as little effort as possible for the user.
 
G

Guest

Yes, all recipients are using Outlook. We are on an Exchange server, however publishing to the Organizational Forms library is not supported

Are all recipients using Outlook? Is this in an Exchange organization wher
you can publish a form to the Organizational Forms library

RogerC said:
My form has several textboxes and a list of questions with radio-button
to select an answer for each question. I want the user to open the form
enter information into the textboxes, select 'yes or no' for eac
radio-button and then have the form send their responses back to me.
would like this to happen with as little effort as possible for the user
 
S

Sue Mosher [MVP-Outlook]

If you cannot publish to OrgForms, then the only way to get an Outlook
message form to work like this would be to publish it to every person's
Personal Forms library. Since that complicates the process immensely, I
would suggest using a web page form for this instead of an Outlook form.

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



RogerC said:
Yes, all recipients are using Outlook. We are on an Exchange server,
however publishing to the Organizational Forms library is not supported.
 

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