ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   e-mail links (https://www.excelbanter.com/excel-programming/310776-e-mail-links.html)

Don Lloyd

e-mail links
 
Hi all,

I have an imported file that contains a list of names which have links to
e-mail addresses.
The names are blue in colour and the address shows when the mouse hovers
over the name.
How can I extract the e-mail address and for example, place it in another
column ?

Thank you and regards,
Don
..



Tom Ogilvy

e-mail links
 
Dim cell as Range
for each cell in selection
if cell.Hyperlinks.count 1 then
cell.offset(0,1).Value = cell.hyperlinks(1).Address
end if
Next

--
Regards,
Tom Ogilvy

"Don Lloyd" wrote in message
...
Hi all,

I have an imported file that contains a list of names which have links to
e-mail addresses.
The names are blue in colour and the address shows when the mouse hovers
over the name.
How can I extract the e-mail address and for example, place it in another
column ?

Thank you and regards,
Don
.





Don Lloyd

e-mail links
 
Hi Tom,

Both the timing and the content are brilliant.

regards,
Don

"Tom Ogilvy" wrote in message
...
Dim cell as Range
for each cell in selection
if cell.Hyperlinks.count 1 then
cell.offset(0,1).Value = cell.hyperlinks(1).Address
end if
Next

--
Regards,
Tom Ogilvy

"Don Lloyd" wrote in message
...
Hi all,

I have an imported file that contains a list of names which have links to
e-mail addresses.
The names are blue in colour and the address shows when the mouse hovers
over the name.
How can I extract the e-mail address and for example, place it in another
column ?

Thank you and regards,
Don
.








All times are GMT +1. The time now is 12:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com