在Excel VBA中将单个值分配给多个变量

时间:2019-05-11 10:17:53

标签: excel vba

有人可以帮助我为Excel VBA中的多个变量分配一个整数值的语法吗?

1 个答案:

答案 0 :(得分:0)

考虑:

Sub demo()
    Dim SingleValue As Integer, alpha As Integer, beta As Integer, gamma As Integer
    SingleValue = 12
    alpha = SingleValue: beta = SingleValue: gamma = SingleValue
End Sub