Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Sending a plain-text message from a post form (http://www.outlookbanter.com/outlook-using-forms/78361-sending-plain-text-message-post.html)

hpoincare September 9th 08 08:06 PM

Sending a plain-text message from a post form
 
I'm trying to use an example in the book "outlook programming". I created the
form using the Post template. I have made it as far as creating the "Send
request as plain text" control button.

But I had to change the computer I was working on. I saved the file as
RepairRequest.oft and moved the file to a new computer. I opened it on the
new computer.

My problem is that when I double click on the "Send request as plain text"
control button, it doesn't open a "private sub..."

If it did, I have the vb script that is given in the book to complete this
form.

Thanks

Sue Mosher [MVP-Outlook] September 9th 08 11:11 PM

Sending a plain-text message from a post form
 
You must publish the form. An .oft file won't run code in current Outlook
versions.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"hpoincare" wrote:

I'm trying to use an example in the book "outlook programming". I created the
form using the Post template. I have made it as far as creating the "Send
request as plain text" control button.

But I had to change the computer I was working on. I saved the file as
RepairRequest.oft and moved the file to a new computer. I opened it on the
new computer.

My problem is that when I double click on the "Send request as plain text"
control button, it doesn't open a "private sub..."

If it did, I have the vb script that is given in the book to complete this
form.

Thanks


hpoincare September 11th 08 05:25 AM

Sending a plain-text message from a post form
 
Hi Sue,

Love the book. I am trying to mimic your example of a repair request from
your book.

As I mentioned, I'm having trouble with the "Send as Text" command button. I
published the .oft form as you instructed. I then went to Form/design
form/Personal Froms library/Repair Form V.3 and tried once again to double
click on the command button but with no success - nothing happens. I know
there must be some simple facet to this that I'm missing, but what? Do you
have any other suggestions about what I might have overlooked?

I know how double clicking the command button is supposed to work because
I've used it in other examples from the book.

Thanks


"Sue Mosher [MVP-Outlook]" wrote:

You must publish the form. An .oft file won't run code in current Outlook
versions.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"hpoincare" wrote:

I'm trying to use an example in the book "outlook programming". I created the
form using the Post template. I have made it as far as creating the "Send
request as plain text" control button.

But I had to change the computer I was working on. I saved the file as
RepairRequest.oft and moved the file to a new computer. I opened it on the
new computer.

My problem is that when I double click on the "Send request as plain text"
control button, it doesn't open a "private sub..."

If it did, I have the vb script that is given in the book to complete this
form.

Thanks


Sue Mosher [MVP-Outlook] September 11th 08 02:09 PM

Sending a plain-text message from a post form
 
Maybe you're confusing VBA userforms with Outlook custom forms? To enter code
for a Click event for a custom form, in design mode, click the View Code
button or command to display the code window, then type in the entire
procedure.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"hpoincare" wrote:

Hi Sue,

Love the book. I am trying to mimic your example of a repair request from
your book.

As I mentioned, I'm having trouble with the "Send as Text" command button. I
published the .oft form as you instructed. I then went to Form/design
form/Personal Froms library/Repair Form V.3 and tried once again to double
click on the command button but with no success - nothing happens. I know
there must be some simple facet to this that I'm missing, but what? Do you
have any other suggestions about what I might have overlooked?

I know how double clicking the command button is supposed to work because
I've used it in other examples from the book.

Thanks


"Sue Mosher [MVP-Outlook]" wrote:

You must publish the form. An .oft file won't run code in current Outlook
versions.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"hpoincare" wrote:

I'm trying to use an example in the book "outlook programming". I created the
form using the Post template. I have made it as far as creating the "Send
request as plain text" control button.

But I had to change the computer I was working on. I saved the file as
RepairRequest.oft and moved the file to a new computer. I opened it on the
new computer.

My problem is that when I double click on the "Send request as plain text"
control button, it doesn't open a "private sub..."

If it did, I have the vb script that is given in the book to complete this
form.

Thanks


hpoincare October 2nd 08 07:27 PM

Sending a plain-text message from a post form
 
Hi Sue,

I did sucessfully send the form following your advice. But I find the body
of the message is not including the fields:information that I entered as it
did in the book example. I don't know how much you can help on this because
it may be I just need to read more, but maybe you recognize the issue right
away and can offer some advice??

Thanks

"Sue Mosher [MVP-Outlook]" wrote:

Maybe you're confusing VBA userforms with Outlook custom forms? To enter code
for a Click event for a custom form, in design mode, click the View Code
button or command to display the code window, then type in the entire
procedure.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"hpoincare" wrote:

Hi Sue,

Love the book. I am trying to mimic your example of a repair request from
your book.

As I mentioned, I'm having trouble with the "Send as Text" command button. I
published the .oft form as you instructed. I then went to Form/design
form/Personal Froms library/Repair Form V.3 and tried once again to double
click on the command button but with no success - nothing happens. I know
there must be some simple facet to this that I'm missing, but what? Do you
have any other suggestions about what I might have overlooked?

I know how double clicking the command button is supposed to work because
I've used it in other examples from the book.

Thanks


"Sue Mosher [MVP-Outlook]" wrote:

You must publish the form. An .oft file won't run code in current Outlook
versions.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"hpoincare" wrote:

I'm trying to use an example in the book "outlook programming". I created the
form using the Post template. I have made it as far as creating the "Send
request as plain text" control button.

But I had to change the computer I was working on. I saved the file as
RepairRequest.oft and moved the file to a new computer. I opened it on the
new computer.

My problem is that when I double click on the "Send request as plain text"
control button, it doesn't open a "private sub..."

If it did, I have the vb script that is given in the book to complete this
form.

Thanks


Sue Mosher [MVP-Outlook] October 2nd 08 10:29 PM

Sending a plain-text message from a post form
 
If you want data in custom fields to appear in the body of a message, then
you need code to take the data from those fields (Item.UserProperties) and
concatenate it into a string, which you then use to set the value of the Body
property of the outgoing message.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"hpoincare" wrote:

Hi Sue,

I did sucessfully send the form following your advice. But I find the body
of the message is not including the fields:information that I entered as it
did in the book example. I don't know how much you can help on this because
it may be I just need to read more, but maybe you recognize the issue right
away and can offer some advice??



hpoincare October 3rd 08 09:01 PM

Sending a plain-text message from a post form
 
-Thanks Sue,

My ultimate goal is a make-shift ticket system. I would like to create a
script that takes the information from the body of the email on the receiving
end and places the information into fields in an MSAccess database.

From your experience, do you think it's possible to create a script that
will run/process the information or text in the body of the received email
and then extract the user entered data?


"Sue Mosher [MVP-Outlook]" wrote:

If you want data in custom fields to appear in the body of a message, then
you need code to take the data from those fields (Item.UserProperties) and
concatenate it into a string, which you then use to set the value of the Body
property of the outgoing message.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"hpoincare" wrote:

Hi Sue,

I did sucessfully send the form following your advice. But I find the body
of the message is not including the fields:information that I entered as it
did in the book example. I don't know how much you can help on this because
it may be I just need to read more, but maybe you recognize the issue right
away and can offer some advice??



Sue Mosher [MVP-Outlook] October 6th 08 01:16 AM

Sending a plain-text message from a post form
 
A script is not a practical solution. Depending on the scope of your
scenario, VBA code or an add-in would be suitable. See
http://www.outlookcode.com/article.aspx?id=62 for examples of VBA code for
processing incoming messages.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"hpoincare" wrote:

-Thanks Sue,

My ultimate goal is a make-shift ticket system. I would like to create a
script that takes the information from the body of the email on the receiving
end and places the information into fields in an MSAccess database.

From your experience, do you think it's possible to create a script that
will run/process the information or text in the body of the received email
and then extract the user entered data?




All times are GMT +1. The time now is 11:21 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-2006 OutlookBanter.com