Send Email from Excel (Lotus Notes)

  • Hello,


    I have a spreadsheet stored in a SharePoint site. I want to add a button to the top of the spreadsheet that the originator can click when the checklist has been saved in the Sharepoint folder (alerting users it's ready to use).


    I am not sure where to start to write VBA that will send a notification email to a few addresses when a button is clicked.


    The suggested links don't seem to be what I'm looking for -- I do not need to send the spreadsheet itself, just a memo stating it is saved and available.


    Can anyone help?


    Thank you,
    Laura

  • Re: Send Email from Excel (Lotus Notes)


    Assuming you are using Outlook:

  • Re: Send Email from Excel (Lotus Notes)


    Hi, Thank you, but I am not using Outlook (I put Lotus Notes in the subject, apologies if it wasn't clear in the message body).


    I have actually found code that works, except for one problem. The below code will send the email effectively, but then continues to ask me if I want to send the email Yes or No and confirms send . . . on loop, infinitely. I can't seem to figure out what is wrong.
    Hi, Thank you, but I am not using Outlook (I put Lotus Notes in the subject, apologies if it wasn't clear in the message body).


    I have actually found code that works, except for one problem. The below code will send the email effectively, but then continues to ask me if I want to send the email Yes or No and confirms send . . . on loop, infinitely. I can't seem to figure out what is wrong.



    Any thoughts as to why this is happening?

  • Re: Send Email from Excel (Lotus Notes)


    It appears that your code is looping through row 1 to the LastRow of data in column A. Is this what you intend it to do?


    Code
    For x = 1 To Cells(Rows.Count, "A").End(xlUp).Row


    For each row successfully executed you are getting the msgbox. How many rows of data do you have? You can expect to get that many msgbox pop ups....

    Matt Mickle
    Using Excel 2010,2013 & 2016

  • Re: Send Email from Excel (Lotus Notes)


    OH -- Thank you! I definitely do not want it to loop. Suggestions for fixing that line to prevent it from looping?


    Quote from mrmmickle1;770240

    It appears that your code is looping through row 1 to the LastRow of data in column A. Is this what you intend it to do?


    Code
    For x = 1 To Cells(Rows.Count, "A").End(xlUp).Row


    For each row successfully executed you are getting the msgbox. How many rows of data do you have? You can expect to get that many msgbox pop ups....

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!