I have a form where I have 5 buttons that all will do the same thing just to different sections of the form, I would like to simplify my code by only having one routine for all five. My only sticking point is that I am not sure how to detect which button of the five was used. Basically each button will clear a small group of cells next to that button.
Is there a way to detect the name of the form control that initiated the code to be ran?
Bookmarks