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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Is this feasible?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 8th 10, 08:14 PM posted to microsoft.public.outlook.program_vba
JIMC5499
external usenet poster
 
Posts: 7
Default Is this feasible?

I would like to embed a macro into an e-mail. What I need is the ability to
assign a number to a string value and then use that string as a file name in
an attachment path and a link to a folder. I also need to be able to put
three buttons into the e-mail. They would be "Approved", "Not Approved" and
"No Action Required". The selection of one of these buttons would send a
canned reply E-mail. Can this be done in Access 2003?
Ads
  #2  
Old February 8th 10, 08:24 PM posted to microsoft.public.outlook.program_vba
JIMC5499
external usenet poster
 
Posts: 7
Default Is this feasible?



"JIMC5499" wrote:

I would like to embed a macro into an e-mail. What I need is the ability to
assign a number to a string value and then use that string as a file name in
an attachment path and a link to a folder. I also need to be able to put
three buttons into the e-mail. They would be "Approved", "Not Approved" and
"No Action Required". The selection of one of these buttons would send a
canned reply E-mail. Can this be done in Outlook 2003?

  #3  
Old February 8th 10, 08:29 PM posted to microsoft.public.outlook.program_vba
JIMC5499
external usenet poster
 
Posts: 7
Default Is this feasible?

I meant in Outlook 2003.

"JIMC5499" wrote:

I would like to embed a macro into an e-mail. What I need is the ability to
assign a number to a string value and then use that string as a file name in
an attachment path and a link to a folder. I also need to be able to put
three buttons into the e-mail. They would be "Approved", "Not Approved" and
"No Action Required". The selection of one of these buttons would send a
canned reply E-mail. Can this be done in Access 2003?

  #4  
Old February 8th 10, 09:06 PM posted to microsoft.public.outlook.program_vba
JP[_3_]
external usenet poster
 
Posts: 201
Default Is this feasible?

If I understand you correctly, you want your email to contain a link
to a file?

To create the email, you need code like this:

Dim myOlApp As Object
Dim myItem As Object
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(0)

I assume by "buttons" you mean voting buttons. See
http://www.codeforexcelandoutlook.co...ook-using-vba/
for putting the voting buttons on the email. When they are clicked, a
voting response is sent. I don't believe you can customize the reply
at all (other than seeing the custom voting options you set up when
sending the message).

See http://www.codeforexcelandoutlook.co...g-using-excel/
for sample code that shows you how to format the links in the email
body.

As far as "What I need is the ability to assign a number to a string
value and then use that string as a file name in an attachment path
and a link to a folder." I'm not clear what that means. You can always
append a number to a string, as long as you convert it to a string
first. For example

Dim MyString As String
MyString = "Hello World" & "3"
MsgBox MyString

--JP

On Feb 8, 3:14*pm, JIMC5499
wrote:
I would like to embed a macro into an e-mail. *What I need is the ability to
assign a number to a string value and then use that string as a file name in
an attachment path and a link to a folder. *I also need to be able to put
three buttons into the e-mail. *They would be "Approved", "Not Approved" and
"No Action Required". *The selection of one of these buttons would send a
canned reply E-mail. *Can this be done in Access 2003?

  #5  
Old February 8th 10, 09:18 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default Is this feasible?

If you mean that you want the message to run some kind of code, no, that's
not possible unless your scenario meets the requirements for using a custom
Outlook message form; see http://www.outlookcode.com/article.aspx?id=61
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"JIMC5499" wrote in message
...
I would like to embed a macro into an e-mail. What I need is the ability
to
assign a number to a string value and then use that string as a file name
in
an attachment path and a link to a folder. I also need to be able to put
three buttons into the e-mail. They would be "Approved", "Not Approved"
and
"No Action Required". The selection of one of these buttons would send a
canned reply E-mail. Can this be done in Access 2003?



  #6  
Old February 9th 10, 01:25 PM posted to microsoft.public.outlook.program_vba
JIMC5499
external usenet poster
 
Posts: 7
Default Is this feasible?

It doesn't meet those requirements. Thank you for saving me alot of time.

"Sue Mosher [MVP]" wrote:

If you mean that you want the message to run some kind of code, no, that's
not possible unless your scenario meets the requirements for using a custom
Outlook message form; see http://www.outlookcode.com/article.aspx?id=61
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"JIMC5499" wrote in message
...
I would like to embed a macro into an e-mail. What I need is the ability
to
assign a number to a string value and then use that string as a file name
in
an attachment path and a link to a folder. I also need to be able to put
three buttons into the e-mail. They would be "Approved", "Not Approved"
and
"No Action Required". The selection of one of these buttons would send a
canned reply E-mail. Can this be done in Access 2003?



.

 




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


All times are GMT +1. The time now is 10:15 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.