Link to home
Start Free TrialLog in
Avatar of kbay808
kbay808Flag for United States of America

asked on

VBA – How to add a hyperlink to cells in a range?

I have an excel spreadsheet with a dynamic phone list.  I want to user to be able to click on the phone number to make a call via the Skype for Business app.  I’m able to accomplish this by using the below formula but I want to use VBA to add the hyperlink to any cells in range (“B:B”) if not blank.  

=HYPERLINK(CONCATENATE("Tel:1",A1))
ASKER CERTIFIED SOLUTION
Avatar of Norie
Norie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kbay808

ASKER

That works, but I'm want to add the hyperlink to the same cell as the existing phone number.  The phone numbers is listed in column B and I'm trying to get the link to be in the same cell.
Avatar of kbay808

ASKER

@Norie
How do I adapt your code if the target range is in column E and the location of the for the hyperlink needs to be in column M?  I can use the copy and paste function to overwrite the original data and then delete the values in column E as a workaround for the issue stated in my previous post.
Avatar of kbay808

ASKER

Thank you very much
Avatar of kbay808

ASKER

Thank you very much