Closed Thread
Results 1 to 12 of 12

Can excel send automatic email to outlook

  1. #1
    Registered User
    Join Date
    12-21-2006
    Posts
    35

    Question Can excel send automatic email to outlook

    Hi Guys,

    I have a spreadsheet with a number of different actions with various different dates associated to them. Is it possible to create a macro that will automatically send an email to my outlook inbox (or somebody elses) when the date is due or upcoming?

    Also is it possible to include different content in the email based on say the title of the action etc?

    Any help would be greatly appreciated, thanks in advance

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello gurj_sandhu,

    Everything you asked about is possible. Here is a macro to send an email at a particular date and time.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    12-21-2006
    Posts
    35
    Leith thanks for the response.

    Now i have a couple of other questions i have a worksheet which has a number of different actions as i said earlier.

    What i am looking to do is if i put todays date in A1, and i have a list of dates in say column X (starting A3, after the column title) can i get excel to go through the whole list in that column (apporx 300) and where the date is 15 days or less than the current date (A1) send an email to an email address which is stored in column A (starting at A3, after column title) and is it possible to have the subject box of the email containing the data in column I and the body of the text reading from column P???

    Ive attached a little snashot of my worksheet which may help explain what im looking to do......
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello gurj_sandhu,

    I will look at the workbook and add the macros for you. This will take some time because I have to leave my office for a few hours before I can work on it.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    12-21-2006
    Posts
    35
    That great Leith, appreciate you taking the time to look at it.

    Regards,
    Gurj

  6. #6
    Registered User
    Join Date
    10-30-2008
    Location
    Toronto
    Posts
    13
    Hey Leith,

    Would you have time to asist with another Excel email requeest...

    cheers
    Rop1

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Gurj,

    The attached workbook has the email macros installed. I added a button to row 2 on Sheet1 to run the macro. Rows 1 and 2 are frozen so as you scroll those rows they will remain visible.

    Outlook Email Macro
    Please Login or Register  to view this content.
    Command Button Macro
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-21-2006
    Posts
    35
    Thanks for all your help Leith.

    I have tried to run the macro but it highlights the very first line:

    "Sub SendEmail(ByVal SendTo As String, ByVal Subj As String, ByVal Msg As String)"
    in yellow saying "Compile error: duplicate declaration in scope"

    and then highlights the line Msg As String on the line below the first line......

    can you help...

  9. #9
    Registered User
    Join Date
    12-21-2006
    Posts
    35
    Also, regarding the line which determines whether the action is due or not, can we change this to trigger actions which have a due date which is past the date in cell A1 or are coming up to their due date within the next 15 days of the curent date (A1) ....sorry if i wasnt clear in the fist instance.


    Thanks

  10. #10
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Gurj,

    Sorry about the duplicate declarations. That's fixed. The action date is now set to today or 15 days from today. The macro changes are already installed in the attached workbook.

    Sincerely,
    Leith Ross
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Can excel send automatic email to outlook

    Hello All,

    I want help to know if excel can send emails to users based on the cell result

    For Example

    If there are users who need to attempt certain module & we are driving & mapping the completion status.

    Is it possible for Excel 2007 or 2003 to automatically send emails to the user if their module completion shows Incomplete or Not Attempted.

    Is it possible to set reminders or anything as such.

    Awaiting reply.

    Thanx

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Can excel send automatic email to outlook

    Zunil,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

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