Hi I have a quick question, and the solutions found here didnt work and were 6 years old.
ik have a little vba code that links to another page of the workbook where it gets the page name from another cell.
Sub link()
Sheets(Range("L7").Value).Activate
Range("J3").Select
End Sub
It works like a charm, only if the page it wants to link to does not exist i get an error 9 because it wants to link to something that isn't there. Is there any way to remove the error and if it triggers just doesnt do anything?