How can I use an optional array argument in a VBA procedure?

前端 未结 4 450
旧巷少年郎
旧巷少年郎 2020-12-18 23:11

I\'ve got a private procedure in a VBA script for MS Access:

Private Sub drawLineDiagram(chartSpace As Variant, title As String, caption As String, x_val() As

4条回答
  •  攒了一身酷
    2020-12-18 23:39

    The IDE might not be of great use, but the help (for once) contains the answer:
    ParamArray
    Optional. Used only as the last argument in arglist to indicate that the final argument is an Optional array of Variant elements. The ParamArray keyword allows you to provide an arbitrary number of arguments. ParamArray can't be used with ByVal, ByRef, or Optional.

提交回复
热议问题