What tabbed page am I on

B

Brendan Reynolds

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
 
V

Van T. Dinh

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.
 
Top