Solved

Dictionary Object Please Help.

Posted on 2000-03-22
1
135 Views
Last Modified: 2010-05-02
Hi everyone. I am trying to use Dictionary Object having a Tons of problems. I am trying to add strings to it. If string holds a value i save it, i aslo save it to it if strings is empty. THen i need to loop though these empty once and show them on screen. Someone knows how this can be done ? Please show me how. Thanks.
0
Comment
Question by:vbRetard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
corvanderlinden earned 30 total points
ID: 2648367
Dim x As Dictionary
Dim a
Dim i As Integer

Set x = New Dictionary

x.Add "0", ""
x.Add "1", ""

a = x.Keys

For i = 0 To x.Count - 1
  If x(a(i)) = "" Then Debug.Print "Empty"
Next
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question