offspring668
New Member
- Joined
- Nov 1, 2008
- Messages
- 11
Hi there
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
Just after some help with the below. I've been searching through the forums for a bit and havent been able to find an answer to my question.
<o> </o>
The below creates an email with \\test\test hyperlinked.
I want to be able to have the \\test\test bit dependant on a range, so the path is based on what the range is.
<o> </o>
Hope i've explained that well.
<o> </o>
Regards
<o> </o>
<o> </o>
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
Just after some help with the below. I've been searching through the forums for a bit and havent been able to find an answer to my question.
<o> </o>
The below creates an email with \\test\test hyperlinked.
I want to be able to have the \\test\test bit dependant on a range, so the path is based on what the range is.
<o> </o>
Hope i've explained that well.
<o> </o>
Regards
<o> </o>
<o> </o>
Code:
Private Sub CommandButton6_Click()
Dim strbody As String
Dim OutApp As Object
Dim OutMail As Object
<o:p> </o:p>
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
<o:p> </o:p>
strbody = "<font face='Arial'font style='font-size:12' color:'#FF009966'>Hello<br>" & _
" <br>" & _
"This is a test.<br>" & _
"Othere tests can be found at the below links.<br>" & _
" <br>" & _
"<A HREF=""[URL="file://Test/test/"]\\Test\test\[/URL]""> Test link.</A><br>" & _ 'I want to be able to be able to set the second test in this patch as a range.
" <br>" & _
" If you have any questions give me a shout.<br>" & _
" <br>" & _
" Regards.<br>" & _
" <br>" & _
" <br>" & _
Sheets("DATA").Range("C20").Value & "<br>" & _
With OutMail
.To =test
.CC = test
.Subject = "Insight Update" & " - " & Sheets("Menu").Range("J42")
.HTMLBody = strbody
.Display
End With
<o:p> </o:p>
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Unload Me
<o:p> </o:p>
End Sub