lenght of scripting dictionary

Forestq

Active Member
Joined
May 9, 2010
Messages
482
hi,

I'm using Scripting Dictionary to make unique list:

Code:
 Dim count_result As Long
 count_result = 0
 Set dict = CreateObject("Scripting.Dictionary")

For i = 3 To last_row
        looking_string = wsC.Range("O" + CStr(i)).Value
            
                If Not dict.exists(looking_string) Then
                    dict.Add looking_string, ""
                End If
                
            End If
 Next i

Now I want to know how many items I have in dict. How to count lenght of dict?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Use the Count property of the dictionary?
 
Upvote 0
The property is called Count not length.
 
Upvote 0

Forum statistics

Threads
1,215,332
Messages
6,124,313
Members
449,153
Latest member
JazzSingerNL

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