click on sstab element and goto mycode

User avatar
sal21
PlatinumLounger
Posts: 4535
Joined: 26 Apr 2010, 17:36

click on sstab element and goto mycode

Post by sal21 »

I have an sstab, with 5 tabs.
i need to intercept if i have cliked on tab 5, or clicked on tab with by name PAGAMENTI?
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 79694
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: click on sstab element and goto mycode

Post by HansV »

Code: Select all

Private Sub SSTab1_Click(PreviousTab As Integer)
    If SSTab1.Tab = 5
        Call mycode
    End If
End Sub
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4535
Joined: 26 Apr 2010, 17:36

Re: click on sstab element and goto mycode

Post by sal21 »

HansV wrote:
27 Nov 2024, 18:43

Code: Select all

Private Sub SSTab1_Click(PreviousTab As Integer)
    If SSTab1.Tab = 5
        Call mycode
    End If
End Sub
Tks Bro.
First experiene with sstab