Solved

Count items in userform listbox excel vb

Posted on 2009-04-02
3
1,024 Views
Last Modified: 2013-12-26
Is there a way to count how many items are in a listbox in an excel userform? Thanks
0
Comment
Question by:tchristie33
  • 2
3 Comments
 
LVL 4

Expert Comment

by:Avelan
ID: 24053196
Hey,

try listbox.items.count

-Avelan
0
 

Author Comment

by:tchristie33
ID: 24053224
.items is not a found method or data member.
0
 
LVL 4

Accepted Solution

by:
Avelan earned 500 total points
ID: 24053320
Hrm, how about listbox.listcount then?

-Avelan
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now