Clickable email address in userform

RJPotts

Board Regular
Joined
Apr 11, 2007
Messages
143
Hi,

In a spreadsheet that I'm working on the user makes several selections.

One of the selections is accompanied by an 'Info' Button. When pressed a userform appears with various information related to that chosen option.

2 of those bits of information are a url and an email address.

I've been able to use a userform label as a link for the url no problem. I can't find a way to use the email address though. Does anyone know how I can do that?

Dependant on the selections the user makes the info shown on the userform varies so the email address must be derived from a cells contents. For the link to the url I'm using;

Code:
Private Sub Label17_Click()
ActiveWorkbook.FollowHyperlink Address:=Sheets("AC DATA").Range("G4").Value
End Sub

Which is working well. The corresponding email address is stored in "AC DATA" cell L4.

Rgds & many thanks in advance.
Richard
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Perhaps:

Code:
Private Sub Label1_Click()
ActiveWorkbook.FollowHyperlink ("mailto:" & Sheets("AC DATA").Range("L4"))
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,021
Members
449,060
Latest member
LinusJE

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