-1
我想声明一个动态的字符串数组,然后调用其他每个过程。这是我的,我认为它会工作,但我不断收到错误。Word中的VBA数组
Option Explicit
Sub Main()
Public ListArr() As String
Application.Run "Get_Input_List"
End Sub
Function Get_Input_List(ByRef ListArr() As String) As String
Dim list As String
Dim MesBox As String
list = InputBox("Please enters word to sort using a comma with no space to separate", "Words")
ListArr = Split(list, ",")
MsgBox ListArr(1)
End Function