Userform Multipage disabling tab click

别说谁变了你拦得住时间么 提交于 2019-12-02 17:32:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!