最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

excel - Expected Function or Variable when clicking a button in VBA - Stack Overflow

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论