I am not sure about your requirement. I assume that you tried to create a new function to add a text to a hyperlink. Instead of it, you can use the following function.
But unfortunately, although the result is a clickable link, it shows an error message every time I try to click on it.
"The address is invalid" or something similar.
Case 1: www.google.hu/gmail WORKS FINE WHEN I TYPE IT
Case 2:
=HYPERLINK("www.google.hu/" & "gmail") it's clickable too, but shows the invalid error message every time i click.
Any idea? And if we could use VBA to solve it that would be great because the best scenario would be for me a VBA function, which generates HYPERLINKS using a cell's value (which is "x" in my function)
Thank you for your answer! It means to me a lot! Have a nice day!
I am not sure about your requirement. I assume that you tried to create a new function to add a text to a hyperlink. Instead of it, you can use the following function.
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.