本文介绍了Userform Multipage禁用标签点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有多页选项卡的用户表单,每个选项卡中都有一个下一个命令按钮,允许您在没有错误的情况下移动到下一个选项卡(如果有错误,它会提示用户并设置关注该选项卡上的错误)。当用户窗体打开时,我可以单击标签跳转,而不会完成任何违反我的错误处理目的的操作。有没有办法禁用标签选择?或者添加子选项卡本身?
谢谢
解决方案
将多页的样式属性更改为 fmTabStyleNone
(2)。
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
解决方案
Change the Style property of the Multipage to fmTabStyleNone
(2).
这篇关于Userform Multipage禁用标签点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!