+ Reply to Thread
Results 1 to 5 of 5

One email using contents from multiple cells using Lotus Notes

  1. #1
    Registered User
    Join Date
    01-09-2008
    Posts
    17

    One email using contents from multiple cells using Lotus Notes

    Dear All,

    I have tried to find some detail on this from other threads but nothing quite hits the mark so here goes...

    I have a spreadsheet which list inidividual contracts, who manages the contract, their email address and the contract end dates. Some managers look after more than one contract.

    What I need to do is to let the contract manager that one or more of his contracts are coming up for renewal.

    I use the following code to email sub contractors via Lotus Notes to let them know the end date of the contract is coming up but this only works on a one-to-one basis. If Mr X say, has 3 contracts coming up for renewal, I need to send one email that lists the 3 contracts and the end dates, instead of 3 individual emails.

    Please Login or Register  to view this content.
    This one has so far been beyond me I'm afraid so any help anyone can offer would be much appreciated.

    Cheers

    Tom

  2. #2
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862
    Hi tommytee ... try this:
    Please Login or Register  to view this content.
    And your email sending module becomes:
    Please Login or Register  to view this content.
    Hope that helps. MM.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

  3. #3
    Registered User
    Join Date
    01-09-2008
    Posts
    17
    Thank you very much for this MatrixMan,

    You said...

    HTML Code: 
    ...the trouble is I'm not really sure how to do this. Despite the reams of code I pasted in yesterday, I am a very new user to this game so I don't really understand how to 'read' the code. The Contract name is in column D and the Contract manager is in column H (with their email add. in column I)

    Additionally, I couldn't work out how this is actioned? The code I posted yested sends reminders based on a tick ("a" in Marlett font) in column B. How do I identify which contract manager to target for the email or does this do everyone at once?

    Thanks again

    Tom
    ______________________________
    SONA SI LATINE LOQUERIS

  4. #4
    Registered User
    Join Date
    01-09-2008
    Posts
    17
    This may help you to see where I'm up to.

    Please note that the contractor emails go into draft folder pending a quick check and I would need the contract manager emails to do the same.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862
    Hi Tom - I'll try to address your questions individually:

    You've said the contract name is in Col D, contract mgr in Col H and the contract mgr's email in Col I.

    The contract name that I assumed to be in Col A just needs to be changed from 1 to 4 (A to D):
    Please Login or Register  to view this content.
    The contract mgr's name is in H (col 8) and the email address in I (col 9) - I had assumed you were using only the name since Lotus would resolve that name into an email address based on your global address book, but it's better that they're separate, so:
    Please Login or Register  to view this content.
    I've adjusted the code to cope with this and stored both the name and email in arrays. I've also created explicit column definitions that you can amend right at the top of the column; if your email column changes, just change the initialisation section accordingly and it will run fine. I originally had this looking in column 5 (E) because you had 5 hard-coded, but I've now changed that as well.

    For your other question about how to activate it, I suggest you set up a button on the worksheet labelled something like "Send Email Notification to Selected Managers". Right click on it, select "View Code" and this will create an OnClick event for the button. Just call the control module from this ... I've done this for you and it's in the attached file (just click on it and drag it to wherever you want it on the sheet). When you click the button, the code will automatically send an email to each manager that has "a" in the 2nd column.

    Here's the full code; and also in the attachment.
    In the "Current" sheet object:
    Please Login or Register  to view this content.
    In the workbook object - build module:
    Please Login or Register  to view this content.
    In the workbook object - send module:
    Please Login or Register  to view this content.
    Hope that helps.
    Attached Files Attached Files

+ 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. looping through range of cells & sending multiple emails with outlook
    By splosczynski in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2008, 01:49 PM
  2. Counting occurence of multiple cells containing data
    By BrakZak in forum Excel General
    Replies: 8
    Last Post: 11-08-2007, 09:52 AM
  3. Sending Excel through email using Lotus Notes
    By mridzuan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-25-2007, 10:29 PM
  4. emailing from excel via lotus notes
    By chris_mayer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2006, 07:56 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