Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclude from row.... (2000 sr 1)

    ... is possible to exclude, the column E F and G into listbox1 when the userform is show?

    Private Sub UserForm_Initialize()

    Dim I As Integer
    Dim lngMaxRow As Long

    With Me.ListBox1

    .Clear
    .ColumnCount = 10
    .ColumnHeads = True
    lngMaxRow = Sheets("MANCA").Range("A65536").End(xlUp).Row
    .RowSource = "MANCA!A5:J" & lngMaxRow

    End With

    With Me.ListBox2

    .Clear
    .ColumnCount = 10
    .ColumnHeads = True
    lngMaxRow = Sheets("INQUIRY").Range("A65536").End(xlUp).Row
    .RowSource = "INQUIRY!A5:J" & lngMaxRow

    End With

    End Sub

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Exclude from row.... (2000 sr 1)

    Set their column widths to 0, either in design view or in code:

    .ColumnWidths = "36;36;36;36;0;0;0;36;36;36"

Posting Permissions

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