Consulting

Results 1 to 3 of 3

Thread: Clear all items in listbox column

  1. #1

    Clear all items in listbox column

    I have a userform that display items in a listbox. In Column 4 of the listbox have prices. I want to be able to use a button to make this column all $0.00's. Can a VBA code accomplish this task?

    Thanks you

  2. #2
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    Dim v
    Dim k As Long
    
    
    v = ListBox1.List
    For k = LBound(v) To UBound(v)
        v(k, 3) = "$0.00's"
    Next
    ListBox1.List = v

  3. #3
    Thank you Mana...I sincerely appreciate your help!


    Quote Originally Posted by mana View Post
    Dim v
    Dim k As Long
    
    
    v = ListBox1.List
    For k = LBound(v) To UBound(v)
        v(k, 4) = "$0.00"
    Next
    ListBox1.List = v

    OMG...thank you so much

Posting Permissions

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