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

Sending Attachments to recipients



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 30th 06, 06:14 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 3
Default Sending Attachments to recipients

Hi,
If you figured out how to do this, would you be willing to share?
--
diane


"Michael" wrote:

Michael,

Thanks for your response. Sometimes I don't do such a great job at
communicating ideas that I don't fully understand.

The list I was refering to was the distribution list.

This is what I had in mind:

creat an array of values for my D/L

(xyz, abc, 123) etc.

start a loop

if finished with array
end
else
open new message
sendto: (next array value)
enter subject text : "monthly report"
add attachment (file location based on array value) file based on most recent
send
loop

I mainly stuck on the choosing the file and I am thinking your suggestion
of scripting runtime would go in the middle of the loop where I am trying to
select the file.

As far as my mentioning prompting I was thinking about for only file
selction that it would just prompt me for a file and once I selected the file
the code would continue to the next value in the array.

I may be way off in my design.


"Michael Bauer" wrote:

Hi Michael,

sorry, but I don´t understand you.

What kind of list do you mean? And when do you want to be prompted?

Did you take a look at the Scripting Runtime, as I suggested?

--
Viele Grüße
Michael Bauer


"Michael" wrote in message
...
Thanks for your answer Michael, I am trying out somethings based on

your
response.

How would I macro it to just populate a new mail with the list and

then
prompt me for a file to attach. That would be quicker that what I do

now.

I was thinking that since my directory is the same name as my

distribution
list I could some how piece together a way to choose the file from

that?

Eventhoug I am learning some basics I am still a total novice when it

comes
to writing these pieces.

Thanks

Michael

"Michael Bauer" wrote:

Hi Michael,

the easiest way for getting the file informations would be the using

of
the FileSystemObject (Microsoft Scripting Runtime, scrrun.dll).

Once, you have the newest file, you can call CreateItem for a new
MailItem, and it´s Attachments.Add for adding the file.

--
Viele Grüße
Michael Bauer


"Michael" wrote in message
...
Is there a way to macro sending attachments to multiple

recipients. I
have
14 reports that go to 14 distribution lists. Each report going to

its
own
distribuing list. I do this once permonth and the distribution

list
is the
same but the report names are different. Example

xyz distribution list gets "c:\report\xyz\xyz report jan.xls"
abc distribuion list gets "c:\report\abc\abc report jan.xls"

etc.

The report being sent is always the most recent in the respective
directory.

Any suggestions are greatly appreciated




Ads
  #2  
Old November 12th 06, 02:40 PM posted to microsoft.public.outlook.program_vba
Joel
external usenet poster
 
Posts: 48
Default Sending Attachments to recipients

Hello Diane:

Did you get help and if so would you be willing to share???

Thanks,

Joel

" wrote:

Hi,
If you figured out how to do this, would you be willing to share?
--
diane


"Michael" wrote:

Michael,

Thanks for your response. Sometimes I don't do such a great job at
communicating ideas that I don't fully understand.

The list I was refering to was the distribution list.

This is what I had in mind:

creat an array of values for my D/L

(xyz, abc, 123) etc.

start a loop

if finished with array
end
else
open new message
sendto: (next array value)
enter subject text : "monthly report"
add attachment (file location based on array value) file based on most recent
send
loop

I mainly stuck on the choosing the file and I am thinking your suggestion
of scripting runtime would go in the middle of the loop where I am trying to
select the file.

As far as my mentioning prompting I was thinking about for only file
selction that it would just prompt me for a file and once I selected the file
the code would continue to the next value in the array.

I may be way off in my design.


"Michael Bauer" wrote:

Hi Michael,

sorry, but I don´t understand you.

What kind of list do you mean? And when do you want to be prompted?

Did you take a look at the Scripting Runtime, as I suggested?

--
Viele Grüße
Michael Bauer


"Michael" wrote in message
...
Thanks for your answer Michael, I am trying out somethings based on
your
response.

How would I macro it to just populate a new mail with the list and
then
prompt me for a file to attach. That would be quicker that what I do
now.

I was thinking that since my directory is the same name as my
distribution
list I could some how piece together a way to choose the file from
that?

Eventhoug I am learning some basics I am still a total novice when it
comes
to writing these pieces.

Thanks

Michael

"Michael Bauer" wrote:

Hi Michael,

the easiest way for getting the file informations would be the using
of
the FileSystemObject (Microsoft Scripting Runtime, scrrun.dll).

Once, you have the newest file, you can call CreateItem for a new
MailItem, and it´s Attachments.Add for adding the file.

--
Viele Grüße
Michael Bauer


"Michael" wrote in message
...
Is there a way to macro sending attachments to multiple
recipients. I
have
14 reports that go to 14 distribution lists. Each report going to
its
own
distribuing list. I do this once permonth and the distribution
list
is the
same but the report names are different. Example

xyz distribution list gets "c:\report\xyz\xyz report jan.xls"
abc distribuion list gets "c:\report\abc\abc report jan.xls"

etc.

The report being sent is always the most recent in the respective
directory.

Any suggestions are greatly appreciated




  #3  
Old November 19th 06, 11:50 PM posted to microsoft.public.outlook.program_vba
RandallB
external usenet poster
 
Posts: 1
Default Sending Attachments to recipients

I have an Excel spreadsheet with some vba code to do this. It worked until
our IT dept "upgraded" to a new version of Outlook. If someone can help me
debug, I'll gladly share it.

"Joel" wrote:

Hello Diane:

Did you get help and if so would you be willing to share???

Thanks,

Joel

" wrote:

Hi,
If you figured out how to do this, would you be willing to share?
--
diane


"Michael" wrote:

Michael,

Thanks for your response. Sometimes I don't do such a great job at
communicating ideas that I don't fully understand.

The list I was refering to was the distribution list.

This is what I had in mind:

creat an array of values for my D/L

(xyz, abc, 123) etc.

start a loop

if finished with array
end
else
open new message
sendto: (next array value)
enter subject text : "monthly report"
add attachment (file location based on array value) file based on most recent
send
loop

I mainly stuck on the choosing the file and I am thinking your suggestion
of scripting runtime would go in the middle of the loop where I am trying to
select the file.

As far as my mentioning prompting I was thinking about for only file
selction that it would just prompt me for a file and once I selected the file
the code would continue to the next value in the array.

I may be way off in my design.


"Michael Bauer" wrote:

Hi Michael,

sorry, but I don´t understand you.

What kind of list do you mean? And when do you want to be prompted?

Did you take a look at the Scripting Runtime, as I suggested?

--
Viele Grüße
Michael Bauer


"Michael" wrote in message
...
Thanks for your answer Michael, I am trying out somethings based on
your
response.

How would I macro it to just populate a new mail with the list and
then
prompt me for a file to attach. That would be quicker that what I do
now.

I was thinking that since my directory is the same name as my
distribution
list I could some how piece together a way to choose the file from
that?

Eventhoug I am learning some basics I am still a total novice when it
comes
to writing these pieces.

Thanks

Michael

"Michael Bauer" wrote:

Hi Michael,

the easiest way for getting the file informations would be the using
of
the FileSystemObject (Microsoft Scripting Runtime, scrrun.dll).

Once, you have the newest file, you can call CreateItem for a new
MailItem, and it´s Attachments.Add for adding the file.

--
Viele Grüße
Michael Bauer


"Michael" wrote in message
...
Is there a way to macro sending attachments to multiple
recipients. I
have
14 reports that go to 14 distribution lists. Each report going to
its
own
distribuing list. I do this once permonth and the distribution
list
is the
same but the report names are different. Example

xyz distribution list gets "c:\report\xyz\xyz report jan.xls"
abc distribuion list gets "c:\report\abc\abc report jan.xls"

etc.

The report being sent is always the most recent in the respective
directory.

Any suggestions are greatly appreciated




 




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
Outlook Express sending 'extra' attachments... Nick Outlook Express 1 April 25th 06 08:16 PM
Problem sending attachments Newguyhere Outlook Express 5 April 11th 06 04:05 AM
Why are my e-mail attachments not reaching some of the recipients Bobby Joe Mo Outlook - Using Contacts 1 April 1st 06 11:51 PM
Sending email attachments NEIL BLEWITT Outlook Express 1 March 22nd 06 07:40 PM
How to automate sending email with different attachments Xluser@work Outlook and VBA 3 January 25th 06 04:33 AM


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