Mar 20, 2006 #1 davidmreid Programmer Joined Nov 30, 2001 Messages 16 Location US Could you please tell me how to programmatically change the current tab on a tabstrip control?
Mar 20, 2006 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR The Value of a TabControl is the index of the current Page in its Pages collection: To change to the 2nd tab: Me![name of TabControl].Value = 1 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
The Value of a TabControl is the index of the current Page in its Pages collection: To change to the 2nd tab: Me![name of TabControl].Value = 1 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Mar 20, 2006 #3 CautionMP Programmer Joined Dec 11, 2001 Messages 1,516 Location US Using ordinals: Code: Dim tsTest As CustomControl Set tsTest = Me.Controls("ActiveXCtl0") tsTest.Tabs(2).Selected = True Using text values: Code: Dim tsTest As CustomControl Set tsTest = Me.Controls("ActiveXCtl0") tsTest.SelectedItem = "[i]TextOnTab[/i]" Hope this helps, CMP Upvote 0 Downvote
Using ordinals: Code: Dim tsTest As CustomControl Set tsTest = Me.Controls("ActiveXCtl0") tsTest.Tabs(2).Selected = True Using text values: Code: Dim tsTest As CustomControl Set tsTest = Me.Controls("ActiveXCtl0") tsTest.SelectedItem = "[i]TextOnTab[/i]" Hope this helps, CMP