Hey everyone. I am currently working on Debugging a code that has worked wonders for me for the last 10 years. Here is my code:
1 Worksheets(1).Select
2 R = Range("A65536").End(xlUp).Row
3 For Each Cell In Range("A2:A" & R)
4 Cell.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=False
5 Next Cell
6 CopyTargetBookmark = 1
7 For Each Workbook In Application.Workbooks
It is getting hung up on line 4 with a run-time error 9 "Subscript is out of range". ANY input would be invaluable.
Thank you,
Peter
1 Worksheets(1).Select
2 R = Range("A65536").End(xlUp).Row
3 For Each Cell In Range("A2:A" & R)
4 Cell.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=False
5 Next Cell
6 CopyTargetBookmark = 1
7 For Each Workbook In Application.Workbooks
It is getting hung up on line 4 with a run-time error 9 "Subscript is out of range". ANY input would be invaluable.
Thank you,
Peter