Link to home
Start Free TrialLog in
Avatar of sbornstein2
sbornstein2

asked on

Setting Focus to a tab on Form Activate

How can I set the focus to a tab on a form on the activate command?  Thanks all
Avatar of mladenovicz
mladenovicz

SSTab1.SetFocus
If you refer to the SSTAB (Tabed Dialog) then:

Private Sub Form_Activate()
SSTab1.Tab = 1   'or any other number, The number is the tab number you want to set focus on.
End Sub

S
Avatar of sbornstein2

ASKER

I am using VBA actually and I dont have the tab property.  I have a tab called MultiPage1 and the tab name is Page1.  My options under MultiPage1. are

pages
tabindex
etc.

I tried MultiPage1.TabIndex = 1 but no dice it still goes to another tab.
I'm guessing here, but try:

Page1.Pages(1)

Where 1 is the tab number.

Let us know.

S
Or maybe Page1.Pages = 1

But I'm unfamiliar with that vba tab.

S

No dice.
In that case I suggest you ask for refund @ customer support, and replace the question, and this times specifying its VBA and Multipage control. :)

Good luck,

S
ASKER CERTIFIED SOLUTION
Avatar of jkaios
jkaios
Flag of Marshall Islands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The answer is just .Value in VBA.  MultiPage.Value = 1