Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default Marco help - emailing

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 = ; "
.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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Marco help - emailing

Hi Neil

See the tips page by Ron de Bruin

http://www.rondebruin.nl/mail/tips2.htm

If this post helps click Yes
---------------
Jacob Skaria


"Neil Holden" wrote:

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 = ; "
.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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default Marco help - emailing

hi Jacob, i've been on the site and i've followed exactly how to do it and
its still not working, below is what i have done.

..Body = "M:\Procurement\Sub%20Contract%20Submissions\"

"Neil Holden" wrote:

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 = ; "
.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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default Marco help - emailing

Use the HTMLBody property (not .Body, but .HTMLBody) and format the
link as a hyperlink (see http://www.codeforexcelandoutlook.co...utlook-email/).

--JP

On Nov 25, 9:16*am, Neil Holden
wrote:
hi Jacob, i've been on the site and i've followed exactly how to do it and
its still not working, below is what i have done.

.Body = "M:\Procurement\Sub%20Contract%20Submissions\"



"Neil Holden" wrote:
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 = ; "
* * * *.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- Hide quoted text -


- Show quoted text -

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Marco help - emailing

.Body = "file:///M:\Procurement\Sub%20Contract%20Submissions\"

or try the html format example given below..

If this post helps click Yes
---------------
Jacob Skaria


"Neil Holden" wrote:

hi Jacob, i've been on the site and i've followed exactly how to do it and
its still not working, below is what i have done.

.Body = "M:\Procurement\Sub%20Contract%20Submissions\"

"Neil Holden" wrote:

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 = ; "
.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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default Marco help - emailing

Thanks alot Jacob!!!!

"Jacob Skaria" wrote:

.Body = "file:///M:\Procurement\Sub%20Contract%20Submissions\"

or try the html format example given below..

If this post helps click Yes
---------------
Jacob Skaria


"Neil Holden" wrote:

hi Jacob, i've been on the site and i've followed exactly how to do it and
its still not working, below is what i have done.

.Body = "M:\Procurement\Sub%20Contract%20Submissions\"

"Neil Holden" wrote:

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 = ; "
.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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Marco Help please MWhaley Excel Programming 4 November 19th 09 01:46 PM
Marco JBoyer Excel Programming 3 July 8th 08 10:49 PM
Marco Help LaDdIe Excel Programming 2 July 16th 07 09:44 PM
Help with marco Gary Keramidas Excel Programming 1 December 2nd 06 05:17 AM
Can it be done by marco? kaon[_5_] Excel Programming 1 June 28th 04 10:56 AM


All times are GMT +1. The time now is 07:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"