📜  vba 多个可选参数 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:53.497000             🧑  作者: Mango

代码示例1
' Use a ParamArray
Sub Test(ByVal pArg As String, ParamArray pParameters() As Variant)
    ' Can't be combined with 'Optional' arguments
    Dim sValues
    For Each sValues In pParameters
  Debug.print sValues
    Next  
End SUb