admin 管理员组文章数量: 1086019
I have two buttons, one is called "Enter Storage" and the other one is called "Check Calculation".
I assigned macros for both buttons and created user forms for each one "Calculate" and "EnterStorageForm", all the buttons do is show the user forms.
The macro "Storage" was assigned to "Enter Storage" and "Calculations" was assigned to "Check Calculation".
This is the code at the moment
Sub Storage()
EnterStorageForm.Show
End Sub
Sub Calculations()
Calculate.Show
End Sub
When I click on "Enter Storage" it works just fine and the form is shown, but when I click on "Check Calculation" I get the error "Expected Function or Variable" and I can't figure out what the problem is, both are doing the same thing how is it possible that one works and one doesn't, what am I missing here?
thank you for the help in advance
本文标签: excelExpected Function or Variable when clicking a button in VBAStack Overflow
版权声明:本文标题:excel - Expected Function or Variable when clicking a button in VBA - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744052170a2525217.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论