N
Neil Holden
Hi all gurus, below is code for a button so once pressed it will send an
email to the relevant people and information is contained within the email.
What i now want it to do is add an hyperlink to the location of the files so
the user can press on the link and open a folder on the server.
The file path is: M:\Procurement\Sub Contract Submissions
Hope this is possible!!
If Response = vbYes Then
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
strbody = "Sub Contract Submissions" & " for " &
Sheets("sheet1").Range("B10").Value & " " & _
Sheets("sheet1").Range("b9").Value & " " & "has been submitted"
On Error Resume Next
With OutMail
.To = "(e-mail address removed); (e-mail address removed)"
.CC = ""
.BCC = ""
.Subject = "Sub Contract Submission please check"
.Body = strbody
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End If
'vbNo does all this between # lines
If Response = vbNo Then
End If
email to the relevant people and information is contained within the email.
What i now want it to do is add an hyperlink to the location of the files so
the user can press on the link and open a folder on the server.
The file path is: M:\Procurement\Sub Contract Submissions
Hope this is possible!!
If Response = vbYes Then
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
strbody = "Sub Contract Submissions" & " for " &
Sheets("sheet1").Range("B10").Value & " " & _
Sheets("sheet1").Range("b9").Value & " " & "has been submitted"
On Error Resume Next
With OutMail
.To = "(e-mail address removed); (e-mail address removed)"
.CC = ""
.BCC = ""
.Subject = "Sub Contract Submission please check"
.Body = strbody
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End If
'vbNo does all this between # lines
If Response = vbNo Then
End If