ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Button Name or Cell Reference (https://www.excelbanter.com/excel-programming/343532-button-name-cell-reference.html)

Trefor

Button Name or Cell Reference
 
I have a sheet with 20 rows, at the end of each row is a button. If each
button calls the same macro, is there a way to know either which Button was
pressed (e.g. Button Name = "Button 1", or which Row or Cell Reference the
pressed Button was on?

I need to get the row number to process other code based on the row the
button was on.
--
Trefor

Norman Jones

Button Name or Cell Reference
 
Hi Trefor,

See reponse to your later post

---
Regards,
Norman



"Trefor" wrote in message
...
I have a sheet with 20 rows, at the end of each row is a button. If each
button calls the same macro, is there a way to know either which Button
was
pressed (e.g. Button Name = "Button 1", or which Row or Cell Reference the
pressed Button was on?

I need to get the row number to process other code based on the row the
button was on.
--
Trefor





All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com