因此,我正在使用Excel 2010,現在,我試圖使用計算一個變量的值在一個子中,並希望它在多個子中使用,除了我可以不知道該怎麼做。這裏是在多個子VBA中使用變量
Public Sub Calc()
Dim i As Integer
i = 10 - 5
End Sub
'Other sub that will use the value for i calculated in the Calc sub
Sub Macro()
y = i +5
End Sub
我怎麼想,以能夠使用我使用的最基本的形式是什麼的一個例子/傳爲「我」在/該數值到子宏?
................ Nice Reference ................ –
@ Gary的學生,謝謝!乾杯,Maciej –