My hyperlink works when I click the cell but it does not work with the macro

emilt_milut

New Member
Joined
Feb 4, 2018
Messages
9
Range("M6").Select<o:p></o:p>
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True<o:p></o:p>
Run time error 9: subscript out of range<o:p></o:p>
In other similar macros, the codeworks perfectly<o:p></o:p>
<o:p></o:p>
Thanks much for any suggestion<o:p></o:p>
Leon Traubkatz<o:p></o:p>
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I cannot recreate your problem if link is embedded in the cell
I can recreate your problem if the cell contains =HYPERLINK(...) function

Try to embedding the link in the cell
-Right-Click on cell \ Insert Hyperlink etc
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

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.
Go back
Back
Top