+ Reply to Thread
Results 1 to 8 of 8

email vba

  1. #1
    Registered User
    Join Date
    10-28-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    37

    email vba

    i have a workbook with 2 reminder sheets and a email range on sheet 3, what would be the best way to send a reminder
    cheers
    Attached Files Attached Files

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: email vba

    Hey,

    I saw your file but I do not understand do you just want to send the email or check the date and then send the email.....you can edit the below code...if you need help pls revert back..

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-28-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: email vba

    im using this code but its sending sheet1 twice not sheet1 and sheet2

    see att
    Attached Files Attached Files
    Last edited by laduk; 04-06-2015 at 04:39 AM.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: email vba

    Hi, laduk,

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: email vba

    Hi, laduk,

    because you choose to have a code for each sheet invdividually and did not take care to refer to each sheet when getting any cellīs information. If you do not use the correct syntax the data will be taken from the active sheet (and not the desired one).

    Iīd have a go with this (untested as no Outlook available for me for the time being):
    Please Login or Register  to view this content.
    Ciao,
    Holger

  6. #6
    Registered User
    Join Date
    10-28-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: email vba

    great thanks but would like sheet2 to send a different messae ie number 2 message

    cheers
    Last edited by laduk; 04-06-2015 at 05:19 AM.

  7. #7
    Registered User
    Join Date
    10-28-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: email vba

    sorted it thanks very much

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: email vba

    Hi, laduk,

    if you use a diffferent sheet for the address I would place the contents of the body on that sheet as well and refer to the areas.

    Besides I would use the Autofilter to spot empty cells in Column E and work with a For Each on thise cells if available instead of looping through the whole ranges. It might not be a time factor here with just one set of data but imagine to have a thousand sets with just 20 which need to be send.

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vba pull data from outlook body of email through email or subject of mail into excel
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2014, 04:37 AM
  2. Send New Email W/ Body of Received Email, Then Delete Sent Email
    By edneal2 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 07-01-2013, 12:45 AM
  3. send selected range in email with default outlook email signature included
    By mdsickler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2013, 10:50 PM
  4. How to parse data in Outlook email using HTML version of email back to excel
    By bnasty in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-31-2012, 02:54 PM

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