【发布时间】:2013-12-07 12:58:56
【问题描述】:
我想将我的输入传递给其他潜艇,例如:
Sub Search()
Inputbox myInput '~> this is the variable I want to pass
Call getInput '~> I want to pass the variable to this sub
End sub
Sub getInput()
if a = myInput '~> from sub Search()
DO something
End sub
我搜索解决方案并阅读了有关 ByVal 或 ByRef 的信息,但我很困惑将变量放在哪里,有人可以帮忙吗?
【问题讨论】:
标签: vba