Hi all,
I am writing an application that presents a form (on a sheet called Form) to the user. This form has multiple fields for entry, (some fill-in and some choices via pull-down menus in combo boxes).
When the user clicks submit, the data is all moved, formatted, calculated as needed, and inserted into a seperate sheet, called Database. There is also a 'Clear Form' button that does just that.
Everything as far as functionality with the above features I can get to work just fine. My problem is this:
I have been informed that an email needs to be sent to an administrator whenever the user clicks submit. Normally, this would be simple, but there's more. The user already specifies his/her company division in the cell "C9". This is a pull-down menu that is populated with data from a table that is hidden off to the side of the form. This table includes each of the possible divisions (there are 13), as well as the administrator email address that a message needs to be sent to when the form is submitted.
What I need is some code to do is this:
1) Given the choice for the user's division, determine which email address needs to receive an email. [email address are in Range("R6:R18")]
2) Generate an email containing the following contents:
Subject:
Global Validation Event Approval
Message:
("C6") has submitted an event to the Global Validation Event Database on ("C13"). Please review the submission and approve or decline the event in the master Database. Then, inform ("C6") of the updated status of the event. Thank you.
3) Send the email (using lotus notes) to the address determine in step 1.
I figured that I could use some form of the LOOKUP function, but I cannot seem to get this to work. Also, I am unsure as to how to get excel to send the email through Lotus Notes. I have seen code for Outlook, but not for Lotus...so I am a bit of a beginner as far as that is concerned.
Please let me know if and how this would be possible.
THANK YOU IN ADVANCE!!!!
I am writing an application that presents a form (on a sheet called Form) to the user. This form has multiple fields for entry, (some fill-in and some choices via pull-down menus in combo boxes).
When the user clicks submit, the data is all moved, formatted, calculated as needed, and inserted into a seperate sheet, called Database. There is also a 'Clear Form' button that does just that.
Everything as far as functionality with the above features I can get to work just fine. My problem is this:
I have been informed that an email needs to be sent to an administrator whenever the user clicks submit. Normally, this would be simple, but there's more. The user already specifies his/her company division in the cell "C9". This is a pull-down menu that is populated with data from a table that is hidden off to the side of the form. This table includes each of the possible divisions (there are 13), as well as the administrator email address that a message needs to be sent to when the form is submitted.
What I need is some code to do is this:
1) Given the choice for the user's division, determine which email address needs to receive an email. [email address are in Range("R6:R18")]
2) Generate an email containing the following contents:
Subject:
Global Validation Event Approval
Message:
("C6") has submitted an event to the Global Validation Event Database on ("C13"). Please review the submission and approve or decline the event in the master Database. Then, inform ("C6") of the updated status of the event. Thank you.
3) Send the email (using lotus notes) to the address determine in step 1.
I figured that I could use some form of the LOOKUP function, but I cannot seem to get this to work. Also, I am unsure as to how to get excel to send the email through Lotus Notes. I have seen code for Outlook, but not for Lotus...so I am a bit of a beginner as far as that is concerned.
Please let me know if and how this would be possible.
THANK YOU IN ADVANCE!!!!
Last edited: