如果我有一个数组或变量,我从一个过程传递到另一个过程除了在每个前一个过程结束时调用下一个过程之外还有其他方法吗?对于常规变量,我可以使用公共变量但是使用数组会更加棘手,特别是如果是2维数组,您只能重新保留最后一个维度。
这是我一直在做的事情
Option Explicit
Public strA As String, strIndex As String
Sub first_procedure (strA As String, strIndex As String)
.
.
Call next_procedure (strA As String, strIndex As String)
End Sub
sub next_procedure (strA As String, strIndex As String)
.
.
.
Call third_procedure ((strA As String, strIndex As String)
.
.
End Sub