Computing.Net > Forums > Web Development > Copy email behind hyperlink text

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copy email behind hyperlink text

Reply to Message Icon

Name: aegappen
Date: March 13, 2009 at 06:52:21 Pacific
OS: Windows Vista
Product: Hewlett-packard / DV9000
Subcategory: Javascript/Ajax
Comment:

How do I copy email address behind the hyperlink text in Excel, using VBA. I want to put the email address in the cell beside the hyperlink. Using office 2007.

Best regards
aeg



Sponsored Link
Ads by Google

Response Number 1
Name: aegappen
Date: March 13, 2009 at 09:10:08 Pacific
Reply:

I found this code that helped me a lot.
Sub HyperLinkAddressToLeft()
Dim h As Hyperlink
For Each h In Selection.Hyperlinks
h.Range.Offset(0, -1).Value = h.Address
Next h
End Sub


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Copy email behind hyperlink text

php copy from file script www.computing.net/answers/webdevel/php-copy-from-file-script/392.html

form processing www.computing.net/answers/webdevel/form-processing/1525.html

Flash help www.computing.net/answers/webdevel/flash-help/2067.html