+ Reply to Thread
Results 1 to 3 of 3

Get selected vlaues from list box and copy all the rows containng this value to new sheet

  1. #1
    Registered User
    Join Date
    07-25-2009
    Location
    india
    MS-Off Ver
    Excel 2016
    Posts
    41

    Get selected vlaues from list box and copy all the rows containng this value to new sheet

    hi,

    I want to select a name from list box. based on the value (name)selected it should read the source file and copy all the rows containing this value into new sheet. this is piece of code i got from net but its not working. can you please let me know how to proceed

    Please Login or Register  to view this content.
    
    Last edited by alansidman; 04-11-2017 at 10:19 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

    Re: Get selected vlaues from list box and copy all the rows containng this value to new sh

    Suggest you change this line of code
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Get selected vlaues from list box and copy all the rows containng this value to new sh

    but it is not working
    does not tell us much.
    I also think you're missing a space, "Sheet" and "Offset(1)" in
    Please Login or Register  to view this content.
    Am I right in assuming that you work with a listbox on a UserForm?
    If so, I would go like this.
    All you have to do is select something in the listbox.
    Change the references (Ranges, Sheet Names etc) as required and try it on a copy of your workbook first.

    Please Login or Register  to view this content.
    Last edited by jolivanes; 04-12-2017 at 12:42 AM. Reason: add info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy only rows with data to second sheet (selected columns)
    By shoban13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 01:52 PM
  2. Copy data from selected rows to another sheet.
    By Headhunter234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 07:38 AM
  3. Copy selected rows to another sheet urgent pls help
    By shmultz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2011, 07:32 AM
  4. Copy Rows from selected Sheet to New Sheet based on Cell Value
    By joemcmillen in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 04-03-2008, 03:44 PM
  5. Copy Selected Rows To Another Sheet
    By bjwade62 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2006, 06:57 PM
  6. [SOLVED] copy selected rows to new sheet
    By Bryan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2005, 01:06 AM
  7. loop to copy selected rows to a new sheet
    By katey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2005, 10:01 PM

Tags for this Thread

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