I have two sheets, with sheet 1 open I have a button click, and in the button click handler, I do:
Call Sheet2.DoSomething
In the DoSomething
method, ActiveSheet
refers to Sheet1 since that's the active sheet. Is there a way for DoSomething to reference its own sheet (Sheet 2) without explicitly specifying its name? So that if the sheet is renamed in the future, it won't break?
Other than fudging in passing a reference, I was specifically wondering if there was a keyword or something involving Me
.