Re: Sending Attachments to recipients

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Michael (Michael_at_discussions.microsoft.com)
Date: 02/04/05


Date: Fri, 4 Feb 2005 08:05:07 -0800

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" <Michael@discussions.microsoft.com> wrote in message
> news:BA71EF47-CD17-4759-9F47-7A0FEF4C3EF6@microsoft.com...
> > 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" <Michael@discussions.microsoft.com> wrote in message
> > > news:1C5F6179-6232-4952-B1AE-244E62429E2D@microsoft.com...
> > > > 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
> > >
> > >
>
>



Relevant Pages

  • Re: scanf problem
    ... >8 bit binary representation from keyboard which is then scanfed into &Ptext ... a string of 8 characters needs an array of 9. ... There is no guarantee that this prompt will be displayed right away. ... probably a little drastic just to get a prompt to display. ...
    (comp.lang.c)
  • Re: Anyone know a lame aioe.org forger?
    ... "Michael A. Terrell" wrote: ... arrays Cherry Semiconductor or GEC/Plessey used to have back ... also claim to have an array. ...
    (sci.electronics.design)
  • Re: Use of implicit split to @_ is deprecated
    ... Michael Holzt: ... Offensichtlich verwendet split das Array ... Unverständlich ist mir hingegen, wieso zum Zwischenspeichern ... Vielleicht wird das in Perl 6 ja konsistenter gelöst sein. ...
    (de.comp.lang.perl.misc)
  • Re: Coverage Calculation Speed in VBA, VB, C# and C++
    ... know better is to declare an array that has say, 13,983,616 elements ... With Michael' s code I will add an array or vector to flag the blocks ... Modify it to check any wheel and see what you think of the speed. ...
    (rec.gambling.lottery)
  • Re: SocketChannel.write(ByteBuffer src) problem
    ... If your problem persists, wouldn't it be worth your while to consider ... I'm also pulling the exact same data into a byte array and then ... I would get a response back. ...
    (comp.lang.java.programmer)