ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   sheet selection via user click (yez) (https://www.excelbanter.com/excel-programming/404935-sheet-selection-via-user-click-yez.html)

Yossi evenzur[_2_]

sheet selection via user click (yez)
 
Hi
what is the correct syntax for selection a sheet by the user via mouse
click? the user click on the selected sheet as the input for the macro.

Dave Peterson

sheet selection via user click (yez)
 
Maybe a worksheet event:

Private Sub Worksheet_Activate()
'your code here
End Sub

or

A workbook event:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
'your code here
End Sub



Yossi evenzur wrote:

Hi
what is the correct syntax for selection a sheet by the user via mouse
click? the user click on the selected sheet as the input for the macro.


--

Dave Peterson


All times are GMT +1. The time now is 08:56 AM.

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