I have code attached to a button
Private Sub PerfCompare_Click()
I want to use the same code for another process. When I add PerfCompare to the other code - it says Sub or Function not defined.
I have copied the code into another Function but it is a duplicate of the code and it seems that it would be confusing to someone looking at the code unless they know what I have done.
Is there a way to use the PerfCompare_Click code for another procedure and if so how?
Thanks in advance.