+ Reply to Thread
Results 1 to 16 of 16

How to send Lotus email with VBA to more recipients and also to more copy recipients

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    How to send Lotus email with VBA to more recipients and also to more copy recipients

    Hi excel experts, I was looking for some code to be able to send Lotus email with VBA. There were some useful codes (the best I found is below), but I can send email only to one recipient and without copy recipient, so its needs to be utilized, please help. I see in another code example that they are using string for vaRecipient nor Variant, but when I change it, it didn't work !

    Please Login or Register  to view this content.

    THIS IS THE PART OF CODE I TRIED TO IMPLEMENT BUT WITHOUT SUCCESS, ANY SUGGESTIONS ???

    Please Login or Register  to view this content.
    THANKS IN ADVANCE FOR YOUR COOPERATION, I THING THAT THIS THREAT (WHEN SOLVED) CAN BE ALSO USEFUL TO OTHER USERS...

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Hi,

    instead of CC use copyto.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    You could use an Array to send to multiple recipients if thats what you're looking for.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Hi John and thanks for reply, but I don't want to use an array, I want to write the names of recipients into msgbox, and loop until I don't click cancel (like in the second code above).

    And also in similar way put the names of copy recipient into msgbox. Please any advice, how to tune the code and get it to work?

  5. #5
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Hi xlbiznes and thanks for reply, but could you be more specific because I try it and it don't work for now

  6. #6
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Please anyone can you help me with this one because i cant find some useful code to do that, thanks in advance !

  7. #7
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Hi,

    what i meant was that instead of the code :

    Please Login or Register  to view this content.
    use this

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Hi xlbiznes and thank you for your good advice, now I am able to send the email also to copy recipients. But one last thing is not working. The loop process doesn't work as I want to, because I want to send the email to more than one recipient. When I put name into msgbox, then it goes to next step (copy recipient). I tried various combinations but its not working so please look at the code:
    Please Login or Register  to view this content.
    WHERE vaRecipient is Dim as Variant
    Last edited by Sachy; 03-08-2013 at 10:59 AM.

  9. #9
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Hi,

    does your loop go through or does it thrown an error ?

  10. #10
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    You need to store the email id's in an array.

    so your variable would be

    dim vaRecipient(10) as Variant

  11. #11
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Well it dont throw an error, but I am able to put there only one name of recipient and then the code jump to next step. But it should open another msgbox where can I insert more recipient.

  12. #12
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    I tried to change loop while into loop until, now I can set multiple recipients into msgbox, but after this change email is not send to anybody, please any advice ?
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Still stuck on this thread, any advice how to finally solve it ? Please help

  14. #14
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    @Sachy,

    Use this code , it basically your code with some modifications. Do let me know if this solves your issue.

    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    02-07-2013
    Location
    Slovakia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    This is IT !!! You are the man Xlbiznes, really appreciate your help - good job!

  16. #16
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: How to send Lotus email with VBA to more recipients and also to more copy recipients

    Glad, i could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1