VBA 中的靜態變數非常簡單:. Public Sub foo(); Static i As Integer; i = i + 1; Debug.Print i; End Sub. 輸出(多次呼叫時):.
確定! 回上一頁