VBA' Scripting.Dictionary'在MAC上

时间:2016-12-20 19:11:08

标签: excel vba

我在VBA电子表格上有以下代码(在PC上完美运行):

With CreateObject("Scripting.Dictionary")
For Each rCell In ws.Range("meals", ws.Cells(Rows.Count, "B").End(xlUp))
    If Not .Exists(rCell.value) Then
        .Add rCell.value, Nothing
    End If
Next rCell

cbMeal.List = .Keys
End With

有没有办法让它在MAC上工作?

0 个答案:

没有答案