excel - vba code (macro) to open link in a selected cell -


i have excel log file. contains in information of project in 1 area can find file when wish. have made formula generate links need (instead of having insert hyperlink time). can copy link explorer address , open link. far good. want able make more convenient now.

i add vba code can double click cell open link. im sure possible. can me out please? generated links in 1 column (in case, column "m"), don't need work everywhere in log file. please somebody! thank you.

so far, have after trying attempt record marco , gives me

sub macro2() ' ' macro2 macro '     selection.copy end sub 

the rest of recording not record reason. steps need

  1. copy selection
  2. open windows explorer (or use start>run)
  3. paste address bar
  4. open (or enter)

screenshot of file - please see column m

===edit===

so member here have found out way make formula hyperlink without need of macros. didn't know formula existed. sorry if may have wasted anyone's time.

=hyperlink(refer cell or formula there)

why dont use hyperlink function (following example)?

      1   www 2   google 3   com 4   =hyperlink("http://"&a1&"."&a2&"."&a3) 

this generates string clickable hyperlink.

edit*

from example can put =hyperlink(m2) column n if don't want change whats in m.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -