ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Event in current sheet (https://www.excelbanter.com/excel-programming/292665-event-current-sheet.html)

Peter Wallin

Event in current sheet
 
Hello,
I have an add-in in Excel. Now, I want to run some code in my add-in
when the user clicks in the current workbook. I want be able to catch
when the user clicks in any sheet in any workbook. And then I want to
handle that click event by running code in my add-in. How do I that?

Thanks in advance, Peter W.

Chip Pearson

Event in current sheet
 
Peter,

You need to use Application level events. See
www.cpearson.com/excel/appevent.htm for details.



"Peter Wallin" wrote in message
m...
Hello,
I have an add-in in Excel. Now, I want to run some code in my

add-in
when the user clicks in the current workbook. I want be able to

catch
when the user clicks in any sheet in any workbook. And then I

want to
handle that click event by running code in my add-in. How do I

that?

Thanks in advance, Peter W.





All times are GMT +1. The time now is 10:09 AM.

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