Call a Subroutine from a different Module in VBA

前端 未结 1 1234
悲&欢浪女
悲&欢浪女 2020-12-05 01:12

Is it possible to call a function from one Module to another?

I have the following code:

Sub MAIN()
    Call IDLE
End Sub
1条回答
  •  我在风中等你
    2020-12-05 02:11

    Prefix the call with Module2 (ex. Module2.IDLE). I'm assuming since you asked this that you have IDLE defined multiple times in the project, otherwise this shouldn't be necessary.

    0 讨论(0)
提交回复
热议问题