2017-12-22 9 views
5

Iは、以下のバリアントを有しています。コードの特定のポイントにおいてVBA:Variantをnullにどのように?私は<code>ComboBox</code>コントロールの値を含む配列として、すべてのコードで使用</p> <pre><code>Dim comboitems() As Variant </code></pre><p>:

、Iはcomboitems()ヌル/空/クリアする必要があります。どのようにできるのか?私は成功せず、次のすべてのオプションを試してみました。

comboitems = "" 
comboitems = Null 
comboitems = Nothing 
Set comboitems = "" 
Set comboitems = Null 
Set comboitems = Nothing 
comboitems() = "" 
comboitems() = Null 
comboitems() = Nothing 
Set comboitems() = "" 
Set comboitems() = Null 
Set comboitems() = Nothing 

私が手にエラーがこれです:バリアント配列では

enter image description here

+2

'おそらくcomboitems'を消去? –

+1

preserve' 'なし' ReDim'? – LocEngineer

答えて

関連する問題

 関連する問題