Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Multiple email reciepients for the same file.

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Good morning everyone.

    I have a macro that emails out a file at the end but I'm having trouble with the syntax for adding another email address to the argument1 line:

    arg1:="ask@mrexcel.com", _
    arg2:="Daily Report"

    How would I add say, "someoneelse@mrexcel.com" in the same line?

    Thanks in advance.

  2. #2
    MrExcel MVP lenze's Avatar
    Join Date
    Feb 2002
    Location
    Helena, MT
    Posts
    13,690
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    The macro I use uses a semi-colon as the address separator.

  3. #3
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Could you list the names in an array and use the array as the .SendMail part?

    NameList = Array("johnq@public.com", "jane@doe.com")

    and then
    .SendMail Array(NameList)

    Untested in full, but it may work.

    Bye,
    Hay

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •