Consulting

Results 1 to 5 of 5

Thread: Solved: print contents of a list box?

  1. #1
    VBAX Expert
    Joined
    Jan 2005
    Posts
    574
    Location

    Solved: print contents of a list box?

    All

    I ve search the kb and forum and cant find this (unless i missed it),

    What I need to be able to do is print the contents of a list box,

    Is this possible?

    Cheers

    Gibbo

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You could dump it to a worksheet range and then print that

    [VBA]
    With UserForm.Listbox1
    Range("A1").Resize(.ListCount, 10).Value = .List
    End With
    [/VBA]
    ____________________________________________
    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
    VBAX Expert
    Joined
    Jan 2005
    Posts
    574
    Location
    Thanks, I ll give it go, whats the 10 mean?

    Cheers

    Gibbo

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by gibbo1715
    Thanks, I ll give it go, whats the 10 mean?

    Cheers

    Gibbo
    Number of columns.
    ____________________________________________
    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

  5. #5
    VBAX Expert
    Joined
    Jan 2005
    Posts
    574
    Location
    great, thanks very much

    gibbo

Posting Permissions

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