Set a tab control using VBA

DataTrain
DataTrain used Ask the Experts™
on
Simple question: I have a Tab Control called TabCtlNotes with 3 tabs called Tab1, Tab2 and Tab3.
I want click a button and when I do so, in the OnClick event, display Tab2. Can someone help me with the command? Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Me.Tab2.Setfocus

Author

Commented:
OK - thanks I just worked it out myself!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial