Results 1 to 3 of 3

Thread: List Box Help Asap

  1. #1

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    List Box Help Asap

    Hey,
    How could i add a listbox contents
    Say there is a list box with the following Numbers
    1
    2
    3



    I need code to add that list up answer 6



    THANKS

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    You'll need to add some error handling:

    Code:
        Private Function SumItems(ByVal lstSouce As ListBox) As Long
            Dim o As Object
            For Each o In ListBox1.Items
                SumItems += CType(o.ToString(), Long)
            Next
        End Function

  3. #3

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152
    THANKS !!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width