vba Dictionary - understanding the code

Mallesh23

Well-known Member
Joined
Feb 4, 2009
Messages
983
Office Version
  1. 2010
Platform
  1. Windows
Hi Team,

I am learning VBA Dictionary and trying to understand the below line.
I stuck only with with word Nothing.

Can you someone tell what that Nothing word means.

With Dict
For Each Cl In Sht2.Range("A2:A" & sht2UsdRws)
If Not .exists(Cl.Value) Then .Add Cl.Value, Nothing
Next Cl

Thanks your help in Advance !!


Regards
Mallesh.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Re: vba Dictionary - help required in understanding the code

Press F1 with cursor in or next to a command word to get specific help. In this case, think of it as Null, vbNullString, Empty, or "". It means set the value to well, Nothing. This is common practice as one must enter both input parameter values.

The best help for that object is in a file called Script56.chm.
 
Upvote 0
Re: vba Dictionary - help required in understanding the code

Mallesh23,

If you are trying to learn how to use the Scripting.Dictionary, then check out threads by MickG
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,628
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top