想要使vba中返回值为两个,应该怎么做

2025-03-06 11:51:44
推荐回答(1个)
回答1:

可以使用数组,例如:
函数名 = Array(123,456)
就可以返回两个数,调用例子:
x = 函数()
msgbox x(0)
msgbox x(1)