+ Reply to Thread
Results 1 to 4 of 4

Copying Data Pulled from a Listbox to a New Sheet

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    76

    Copying Data Pulled from a Listbox to a New Sheet

    I have a spreadsheet that contains a lot of data in Sheet1, and I have a userform with two listboxes. the first listbox pulls in the column headings from Sheet1. the user can then choose which info to do something with, and move them to the second listbox. When the user clicks the ok button, I am creating a new worksheet and trying to match the column headings from the second listbox with their corresponding data and put the columns of data, including heading, in the new worksheet. Here is the code I have so far:
    Please Login or Register  to view this content.
    Can anyone help me with how I would go about actually getting the data to the new worksheet, "Dig_Plot_Work"? is my code that far off? I was thinking I may have everything except for the code that goes after Set rngDigData. I already have the code to plot the info once I get the data to the new worksheet. Thanks in advance for your help!

  2. #2
    Registered User
    Join Date
    04-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Copying Data Pulled from a Listbox to a New Sheet

    Here is the sample spreadsheet I'm working with in case it helps...
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Copying Data Pulled from a Listbox to a New Sheet

    Try this one:
    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    04-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Copying Data Pulled from a Listbox to a New Sheet

    protonLeah,
    thanks for the post. everything worked except that the cycles values in column A of sheet 1 didn't make it to the new sheet. that's ok, though. I got it figured out. Thanks for your help!

+ 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