I currently have a MS Excel based "form" set-up and have some code that submits the form via e-mai upon clicking a button on the Excel form.
My dillema: I want the user of the Excel "form" to be able to input what the subject of the e-mail will be into a designated cell / text area located on the excel "form".
Is this possible ?
We are using Office 97 and Microsoft Exchange 5.0
Here's my current code:
--------------------------------------
Sub Button5_Click()
ActiveWorkbook.SendMail Recipients:=("emsg2@.juded.com"
, ReturnReceipt:=True, Subject:="Request for Support" <<< WOULD LIKE SUBJECT TO BE VARIABLE / BASED ON USER INPUT
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Msg = "Request for Support has been submitted." ' Define message.
Style = msoButtonSetNone ' Define buttons.
Title = "Send Confirmation" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
' context.
' Display message.
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then ' User chose Yes.
MyString = "Yes" ' Perform some action.
Else ' User chose No.
MyString = "No" ' Perform some action.
End If
End Sub
-------------------------
Would greatly appreciate any assistance...or guidance.
Thank you.
My dillema: I want the user of the Excel "form" to be able to input what the subject of the e-mail will be into a designated cell / text area located on the excel "form".
Is this possible ?
We are using Office 97 and Microsoft Exchange 5.0
Here's my current code:
--------------------------------------
Sub Button5_Click()
ActiveWorkbook.SendMail Recipients:=("emsg2@.juded.com"
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Msg = "Request for Support has been submitted." ' Define message.
Style = msoButtonSetNone ' Define buttons.
Title = "Send Confirmation" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
' context.
' Display message.
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then ' User chose Yes.
MyString = "Yes" ' Perform some action.
Else ' User chose No.
MyString = "No" ' Perform some action.
End If
End Sub
-------------------------
Would greatly appreciate any assistance...or guidance.
Thank you.