可能重複:
How to check type of object in VB 6 - Is there any method other than 'TypeName'檢查變量類型是Excel中的一個用戶定義的類與VBA
我有一個對象,我需要檢查它是否是一個特定的用戶-defined類或不喜歡的東西下面的代碼:
If Collection.Items(1).object = class1 then
do something
end if
我不知道語法是什麼執行評估用戶定義的類。
相關:http://stackoverflow.com/q/3684693/190829 – JimmyPena 2012-07-25 17:44:45