Thank you for your answer 6StringJazzer,
1) Pop up error:
Run-time error '5': Invalid procedure call or argument
When I click "debug" the line of code "ActiveWorkbook.FollowHyperlink a.Value" is highlighted.
2)the value of "a" is the URL in the first cell selected, the one that is correctly opened in the browser.
3)The URLs may be part of the problem. Let me explain:
- with plain simple URLs copied from the browser or typed in manually (I'm not allowed to post links but I tried with google, amazon etc) the following code works perfectly:
- The URLs I need to work with are created with a CONCAT from different cells and then turned into hyperlink with HYPERLINK() function.
These link are not working with the above code. After extensive researches on google I stumbled in the code in my original post (ActiveWorkbook.FollowHyperlink a.Value)and that worked with my URLs.
I don't understand the difference and couldn't find it anywhere. So I'm stuck here. There are two possible solutions:
a) EASIER (maybe): properly turn into links the URLs obtained from a CONCAT function and use the working VBA code
b) HARDER (for me anyway): fix the code that works with my URLs obtained from a CONCAT function
Any kind of help is much appreciated.
Bookmarks