junglej815
01-07-2009, 10:02 AM
Hello...not sure if its possible but...
What I have is a word document with activeX textboxes and a command button that serves the purpose of a submit button. When that is clicked it opens a new mail message with the document attached ready to be emailed. The for that to happen is as follows:
Public Sub commandbutton1_click()
Dim OL As Object
Dim EmailItem As Object
Dim Doc As Document
Application.ScreenUpdating = False
Set OL = CreateObject("Outlook.Application")
Set EmailItem = OL.CreateItem(olMailItem)
Set Doc = ActiveDocument
Doc.Save
With EmailItem
.Subject = "Content Conference Room Request"
.Body = "" & vbCrLf & _
"" & vbCrLf & _
""
.To = "facilitiesservicescenter@blank.com (facilitiesservicescenter@blank.com)"
.Importance = olImportanceNormal 'Or olImprotanceHigh Or olImprotanceLow
.Attachments.Add Doc.FullName
.Display
End With
Application.ScreenUpdating = True
Set Doc = Nothing
Set OL = Nothing
Set EmailItem = Nothing
End Sub
What I am looking for:
Is there any additional code that could be put into the word document code so that when the "submit" button is clicked an email is sent to the person who clicked it saying that their request was received? Or is that something that would be done in Outlook?
Thanks,
Hope its clear as to what im looking for.
What I have is a word document with activeX textboxes and a command button that serves the purpose of a submit button. When that is clicked it opens a new mail message with the document attached ready to be emailed. The for that to happen is as follows:
Public Sub commandbutton1_click()
Dim OL As Object
Dim EmailItem As Object
Dim Doc As Document
Application.ScreenUpdating = False
Set OL = CreateObject("Outlook.Application")
Set EmailItem = OL.CreateItem(olMailItem)
Set Doc = ActiveDocument
Doc.Save
With EmailItem
.Subject = "Content Conference Room Request"
.Body = "" & vbCrLf & _
"" & vbCrLf & _
""
.To = "facilitiesservicescenter@blank.com (facilitiesservicescenter@blank.com)"
.Importance = olImportanceNormal 'Or olImprotanceHigh Or olImprotanceLow
.Attachments.Add Doc.FullName
.Display
End With
Application.ScreenUpdating = True
Set Doc = Nothing
Set OL = Nothing
Set EmailItem = Nothing
End Sub
What I am looking for:
Is there any additional code that could be put into the word document code so that when the "submit" button is clicked an email is sent to the person who clicked it saying that their request was received? Or is that something that would be done in Outlook?
Thanks,
Hope its clear as to what im looking for.