Excel VBA中的重复用户表单 [英] Duplicate User Form in Excel VBA

查看:126
本文介绍了Excel VBA中的重复用户表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在excel vba中复制表单,这是必要的,因为我已经对表单应用了一些格式,现在希望我的所有表单具有相同的格式。



这样,我只需要更改每个表单中的命令按钮的名称,没有其他的。



我尝试导出表单,然后导入它,但是它给出了一个错误,说该名称已经在使用



任何帮助将不胜感激。

解决方案

在导出之前暂时更改名称,然后在导入之前更改userform的名称,以使其不匹配


I want to duplicate form in excel vba, this is necessary because I have applied some formatting to the form and now want all my forms to have the same formatting.

In this way I'll have to only change the "names" of command button in each form and nothing else.

I tried exporting the form and then importing it, but it gives an error saying "The name is already in use"

Any help would be appreciated.

解决方案

change the name temporarily before exporting, then change the name of the userform before importing so they do not match

这篇关于Excel VBA中的重复用户表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆