Excel CommandButton名称更改

时间:2015-01-30 06:33:35

标签: excel vba commandbutton

我在 ActiveX-CommandButtons 上创建了一个带有宏的excel文件。 当我刚完成它们时,它们运作良好。 只要我再次打开文件, CommandButton-Names就会改变


例如:

CommandButton1已更改为CommandButton2

CommandButton2已更改为CommandButton3 等


我的研究中没有找到任何内容,这是一个excel bug还是你可以根据自己的喜好改变的东西?

1 个答案:

答案 0 :(得分:0)

右键单击CommandButton

转到(点击)'格式化文字效果'

将名称命名为按钮,无论您想要什么。

保存。

关闭工作簿。

将其打开并检查名称是否更改

(无需启用'设计模式')

它对我有用。希望它也适合你。

如果它不起作用,请告诉我。

了解更多信息:https://support.office.microsoft.com/en-in/article/Add-a-button-and-assign-a-macro-to-it-in-a-worksheet-d58edd7d-cb04-4964-bead-9c72c843a283?CorrelationId=345214f6-6d01-4b07-994b-b2e33159e694&ui=en-US&rs=en-IN&ad=IN