AyurvedaPura
New Member
- Joined
- Jan 4, 2012
- Messages
- 44
Hi All
I have a userform where users enter name, email and telephone details then click a commandbutton to transfer values to a worksheet after finding the first blank row in a range. Here is the code:
The thing is, the email address doesn't appear on the worksheeet as a live link - its just the text. If I enter the cell and press enter, it recognises it as an email adddress and makes it a link, but how do I make it do this from vba?
It doesn't have to appear on the userform, but in the sheet i need the email address to be an email address, not text that looks like one but cannot be clicked without first entering the cell and pressing Enter.
Many thanks for any assistance with this, I'm sure it must be simple but I can't seem to find anything useful searching around.
Best wishes
Daniel
I have a userform where users enter name, email and telephone details then click a commandbutton to transfer values to a worksheet after finding the first blank row in a range. Here is the code:
Code:
Dim wsEnrol as Worksheet
Dim irow as Long
Set wsEnrol = Sheets("Enrol Schedule")irow = wsEnrol.Range("A57").End(xlUp).Offset(1, 0).Row
Application.ScreenUpdating = False
With wsEnrol
.Range("A" & irow) = FullName
.Range("B" & irow) = Email
.Range("C" & irow) = Tel
.Range("D" & irow) = StartDate
End With
The thing is, the email address doesn't appear on the worksheeet as a live link - its just the text. If I enter the cell and press enter, it recognises it as an email adddress and makes it a link, but how do I make it do this from vba?
It doesn't have to appear on the userform, but in the sheet i need the email address to be an email address, not text that looks like one but cannot be clicked without first entering the cell and pressing Enter.
Many thanks for any assistance with this, I'm sure it must be simple but I can't seem to find anything useful searching around.
Best wishes
Daniel