问题
I have a userform with multipage tabs, within each tab there is a "next" command button that allows you to move onto the next tab if there are no errors (if there is an error, it prompts the user and sets the focus to the error on that tab). When the userform is open, I can click the tabs to jump around without completing anything which defeats the purpose of my error handling.
Is there a way to disable tab selection? Or add a sub to the tab itself?
Thanks
回答1:
Change the Style property of the Multipage to fmTabStyleNone
(2).
来源:https://stackoverflow.com/questions/25766422/userform-multipage-disabling-tab-click