What tabbed page am I on

  • Thread starter Thread starter Tony Wainwright
  • Start date Start date
The Value property of the tab control returns the index number of the active
tab page. It's zero-based, so the first page is 0, the second is 1, etc.

Private Sub TabCtl0_Change()

MsgBox "Now showing page: " & CStr(Me.TabCtl0.Value)

End Sub
 
If you want the Text as it appears in the little tab, follow Ken's advice
but use the Caption Property instead of the Name Property.
 
Back
Top