+ Reply to Thread
Results 1 to 14 of 14

How to create an excel reminder to Outlook? is it possible?

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    Hannover
    MS-Off Ver
    2013
    Posts
    16

    How to create an excel reminder to Outlook? is it possible?

    Hello all and thanks in advance,

    I wonder if it is possible to create a macro, and if so how, that tells excel ,that everytime that changes in the sheet get saved , send an email to a certain outlook account. That would help heaps to fix some comunication problems that happen in the company where Im working as information is not always comunicated .

    Thanks again in advance!

    link to where Ive posted this already : http://www.mrexcel.com/forum/excel-q...-possible.html
    Last edited by Maximilian88; 04-14-2015 at 05:08 AM.

  2. #2
    Registered User
    Join Date
    03-16-2015
    Location
    Norway
    MS-Off Ver
    2010 or latest
    Posts
    6

    Re: How to create an excel reminder to Outlook? is it possible?

    ' in ThisWorkbook as Workbook AfterSave:

    Private Sub Workbook_AfterSave(ByVal Success As Boolean)

    Dim OutApp As Object
    Dim OutMail As Object
    Dim strbody As String

    Set OutApp = CreateObject("Outlook.Application")
    Set OutMail = OutApp.CreateItem(0)

    strbody = "Hi there" & vbNewLine & vbNewLine & _
    "This is line 1" & vbNewLine & _
    "This is line 2" & vbNewLine & _
    "This is line 3" & vbNewLine & _
    "This is line 4"

    On Error Resume Next
    With OutMail
    .To = "[email protected]"
    .CC = ""
    .BCC = ""
    .Subject = "This is the Subject line"
    .Body = strbody
    'You can add a file like this:
    '.Attachments.Add ("C:\test.txt")
    .Send 'or use .Display
    End With
    On Error GoTo 0

    Set OutMail = Nothing
    Set OutApp = Nothing

    End Sub

  3. #3
    Registered User
    Join Date
    04-08-2015
    Location
    Hannover
    MS-Off Ver
    2013
    Posts
    16

    Re: How to create an excel reminder to Outlook? is it possible?

    Im completly impressed, just like that . Thanks a lot! Now what Ill try to do is that the mail tels you where the file that has been changed is and what changes happened to that file.
    See if I can do it, otherwise, I think Ill write another post .
    Thanks a lot though for your help, thanks so so much!

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: How to create an excel reminder to Outlook? is it possible?

    posted link
    Last edited by Kyle123; 04-14-2015 at 05:13 AM.

  5. #5
    Registered User
    Join Date
    03-16-2015
    Location
    Norway
    MS-Off Ver
    2010 or latest
    Posts
    6

    Re: How to create an excel reminder to Outlook? is it possible?

    Well, you could always try this solution:



    Body text:

    strbody = "Changes (and might be placement of file) of the file " & ThisWorkbook.FullName & " by user " & Application.UserName & " was saved " & Now() & vbNewLine & vbNewLine & _
    "See attached file..."

    And under email:

    With OutMail
    .To = "[email protected]"
    .CC = ""
    .BCC = ""
    .Subject = "Excel file was just saved..."
    .Body = strbody
    .Attachments.Add (ThisWorkbook.FullName)
    .Send
    End With

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: How to create an excel reminder to Outlook? is it possible?

    Amatør, please use code tags!
    thx!
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  7. #7
    Registered User
    Join Date
    04-08-2015
    Location
    Hannover
    MS-Off Ver
    2013
    Posts
    16

    Re: How to create an excel reminder to Outlook? is it possible?

    Understood, sorry and thanks

  8. #8
    Registered User
    Join Date
    04-08-2015
    Location
    Hannover
    MS-Off Ver
    2013
    Posts
    16

    Re: How to create an excel reminder to Outlook? is it possible?

    but this automatically gets updated depending on the user who saves the file as well as if for example someone changes the file of location?

  9. #9
    Registered User
    Join Date
    03-16-2015
    Location
    Norway
    MS-Off Ver
    2010 or latest
    Posts
    6

    Re: How to create an excel reminder to Outlook? is it possible?

    This is correct, but you should be able to change any setting from this example to what you actually do want. :o)

  10. #10
    Registered User
    Join Date
    04-08-2015
    Location
    Hannover
    MS-Off Ver
    2013
    Posts
    16

    Re: How to create an excel reminder to Outlook? is it possible?

    wooow! man! crazy! honestly, gotta learn all about macros, can sole a lot of problems! thanks a lot!

  11. #11
    Registered User
    Join Date
    04-08-2015
    Location
    Hannover
    MS-Off Ver
    2013
    Posts
    16

    Re: How to create an excel reminder to Outlook? is it possible?

    Hallo, myself again, I have a queston regarding that macro, is there any command that you know please, which stops the person whi changes the file recieving an email? This means that when Im the one who recieves the mail everytime something in the file is changed , is there a way to stop recieving a mail when it is me, myself,the one who changes the file? dont know if iI make myself very clear..
    Thanks once more!

  12. #12
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: How to create an excel reminder to Outlook? is it possible?

    That's a different question, please start a new thread

  13. #13
    Registered User
    Join Date
    04-08-2015
    Location
    Hannover
    MS-Off Ver
    2013
    Posts
    16

    Re: How to create an excel reminder to Outlook? is it possible?

    Sorry but I beg to differ, the question is completly related to my previous post as it specifically affects one little part of the macro we are discusing, starting a new post would be completly redudant as would require , most likely, whoever answered it to rewrite the same or very similar macro.
    Moreover my previous question on this same macro -about how could be set the macro so it stated in the mail sent who made the changes in the file- was of the same nature of the one you state now that needs a new thread, with the slight diference that before I wasnt require by you to do so.
    Regards

  14. #14
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: How to create an excel reminder to Outlook? is it possible?

    Your question isn't about outlook, it's about finding out who the active user is when saving a workbook, the outlook part is unrelated.

    Part of the forum is helping other users, as such someone searching for how to identify the active user and behave accordingly is likely to search for that rather than creating outlook reminders.

+ 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. Create Outlook Reminder on Excel and transfered to outlook by macro
    By Benjamin2008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2013, 03:23 PM
  2. How to create an Outlook reminder using Excel data
    By BAM475294 in forum Excel General
    Replies: 0
    Last Post: 08-27-2013, 10:55 AM
  3. Replies: 0
    Last Post: 04-16-2013, 08:15 AM
  4. Creating a reminder in excel and having a pop up in outlook
    By nazismart in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2013, 04:58 AM
  5. Need help to create Excel macro for Outlook Reminder
    By Eric Boudreault in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2011, 11:10 AM

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