I searched a lot for an answer for my problem, but couldn't find anything that helped me.
I want to use Worksheet_SelectionChange` for a specific worksheet. This specific worksheet I want to define in code.
Example (this example makes no sense, I know, but it is the best way to show my problem):
I have three worksheets in my workbook: ws1
, ws2
, ws3
.
ws1
and ws3
are empty, ws2
has some values. When I open the workbook, I search which worksheet is not empty. This works so far.
Now that I found which worksheet is not empty, I want to set the Worksheet_SelectionChange
for this worksheet.
How do I do this?