I am struggling with getting another tab within my document to activate within a function I am running - it works fine when I debug, but as soon as I run it, the rest of the code runs, but it just doesn't switch tabs.
Here is a snippet of some of the code
Function HyperlinkClick()
'Run some other Code...
Worksheets("Delivery Note").Activate
End Function
I am running it as a Function in a separate module as I need to have it linking from a hyperlink that is only created on each row as it is filled out ie:
=IF(C2>0,HYPERLINK("#HyperlinkClick()","Reprint"),"")
Has anyone got any ideas on why this is or another way of achieving this?
Thanks in anticipation!