+ Reply to Thread
Results 1 to 3 of 3

Exporting Data from Listbox to Excel

  1. #1
    Registered User
    Join Date
    10-19-2006
    Posts
    29

    Exporting Data from Listbox to Excel

    Hi

    I have a Userform with a listbox with 4 columns. I would liker to add a button that will Export this list into a worksheet (preferably new sheet but not necessary).

    Can this be done? I have searched but can only find articles on importing to list box from excel.

    Thanks for your help in advance
    Crispie38

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Crispie38,

    Here is an example. The UserForm has a ListBox, and a CommandButton. The ListBox name is ListBox1 and the CommandButton is named CommandButton1. The code loads the ListBox1 with 10 rows and 4 columns. CommandButton1 transfers the contents to the ActiveSheet range "A1:D10".
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    10-19-2006
    Posts
    29
    Thanks Leith

    I only really needed the first part and it seems so simple now.

    Thanks for your help

    Crispie38

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1