Consulting

Results 1 to 4 of 4

Thread: Help W/Small Code . .

  1. #1

    Help W/Small Code . .

    Hi all,

    I have a listbox is a userform. How can recode the below code so that the bound column does not show in the listbox? Column 2 is the bound column, but I only want column 1 to show . . .thanks,





    Private Sub UserForm_initialize()
    Me.ListBox1.ColumnCount = 2
    Me.ListBox1.BoundColumn = 2
     
    Me.ListBox1.RowSource = "MyBound"
    End Sub

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Change ColumnCount to 1
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Set the .ColumnWidth property to ";0"

  4. #4
    Thank you XLD - That worked perfect..

Posting Permissions

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