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
私が手にエラーがこれです:バリアント配列では
'おそらくcomboitems'を消去? –
preserve' 'なし' ReDim'? – LocEngineer