VBA Make link active in Lotus notes

Katy Jordan

Well-known Member
Joined
Jun 28, 2008
Messages
596
Hi, does anyone know how i can make the following link active in Lotus Notes, the cell has a named range Link. I have a code that works, i.e sends email via VBA but i want to make the file path active so the user can click and open the folder.

C:\Test/2011
 
John, I have text in A4, A12, the link in A14, text on A16, so do i have to use this multiple times for each range?

Sheets("Sheet1").Range("A4").Text


Similar to the way I showed you for the email addresses. For example, if the text is in cell A4 on Sheet1, change:

Code:
    HTMLbody = "< p>Links to files on local computer:< /p>" & _
        "< a href='file:///f:\temp\excel\test.csv'>test.csv< />< br>" & _
        "< a href='file:///f:\temp\excel'>Excel folder< />"
to:
Code:
    HTMLbody = "< p>" & Sheets("Sheet1").Range("A4").Text & "< /p>" & _
        "< a href='file:///f:\temp\excel\test.csv'>test.csv< />< br>" & _
        "< a href='file:///f:\temp\excel'>Excel folder< />"
Put each paragraph of text between a paragraph opening tag (< p>) and its closing tag (< /p>) in the HTML code - see http://www.w3schools.com/tags/tag_p.asp. The < br> tag is a line break - see http://www.w3schools.com/tags/tag_br.asp
 
Upvote 0
Did it all work in the end?

I've been down the MIME type route in getting the link to open. However, upon clicking the link, the browser is throwing up an error that it does not recognise the protocol. It seems to centre around the "file:///" part of the HTML getting omitted by Lotus Notes - although it handles http fine.

Checking the document source of the email, with the exception of the Lotus Notes special characters that get added, it all looks fine. Copying and pasting from the email source to the browser address bar works fine also.

I'm just trying to work out whether its a Lotus Notes issue, or a configuration issue.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top