close

前二天鬼打牆很多東西,例如計算陣列中索引計數。

自已還寫了Forall迴圈計算,今天查尋資料突然發現Ubound函數….

疑…我以前不就直接用這個函數嗎!? XD(昏倒…

鬼打牆方法…

用Forall迴圈計算陣列數…

Dim AA As Variant,gg As Integer
Forall m In AA
    gg = gg + 1
End Forall

回神正確寫法

gg =Ubound(AA)

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Lin Justin 的頭像
    Lin Justin

    Lin Justin的部落格

    Lin Justin 發表在 痞客邦 留言(0) 人氣()