-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