I wish my function to return the row number of the selected cell in a specified inactive worksheet ("Clients"). Instead my function is returning the row number of the active cell of the worksheet I'm working on.
When I run the function as a macro it returns the desired value.
The var MyRow is returning the active row number of the sheet I've inserted the function into, not the row number of the selected cell in the "Clients" worksheet. However, the macro version of this program works as I would expect and returns the desired row number:
Thanks.
Bookmarks