+ Reply to Thread
Results 1 to 7 of 7

Sending e-mail through VBA

  1. #1
    Registered User
    Join Date
    03-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    39

    Sending e-mail through VBA

    Dear All,

    I have created following:

    Please Login or Register  to view this content.
    The email addresses are locate at the range mentioned below, but Excel would only send the email when I enter ...Range("b2")
    But it doesn't send it to the other recipients.

    MyArr1 = Sheets("Recipients").Range("b2:b4")
    MyArr2 = Sheets("Recipients").Range("c2:c10")

    Please can anybody help me and tell me what I'm doing wrong?? Why isn't it working for the whole range?

    I've also tried naming the range etc...

    Please help!!!!
    Last edited by MarianneBal; 03-21-2012 at 07:32 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Sending e-mail through VBA

    Hi,

    Please take a moment to read the forum rules and edit your post to include code tags.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    03-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Sending e-mail through VBA

    Thanks Dom!!!

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Sending e-mail through VBA

    Thanks. This may work:

    Please Login or Register  to view this content.
    Dom
    Last edited by Domski; 03-21-2012 at 07:43 AM. Reason: Forgot End With

  5. #5
    Registered User
    Join Date
    03-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Sending e-mail through VBA

    YES!!!! Thank you Dom, it works! You're my saviour!

  6. #6
    Registered User
    Join Date
    10-07-2012
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Sending e-mail through VBA

    When i try its sayas it cant create the outlook.apllication

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Sending e-mail through VBA

    does it work if you start outlook before running the code?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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