+ Reply to Thread
Results 1 to 4 of 4

Move Userform Listbox selected items to another worksheet

  1. #1
    Registered User
    Join Date
    04-30-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    2

    Move Userform Listbox selected items to another worksheet

    Hello,

    I would like to create a Userform which requires the user to check through the items in a Listbox and click a command button to move the items to another sheet (Sheet2).

    The Listbox Rowsource is a dynamic named range (=Sheet1!$A$2:INDEX(Sheet1!$1$65535,COUNTA(Sheet1!$A:$A),COUNTA(Sheet1!$1:$1))

    There are data contain in Sheet1 columns A to L.

    I need a code for command button to move/copy selected items in the Listbox to Sheet2, then delete the same selected items in Sheet1 and refresh the Listbox, so that it appears relatively seamless to user.

    Thanks!

    -Jay

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Move Userform Listbox selected items to another worksheet

    Attached a demo file, note rowsource is not used, the use of Tables is far more stable method.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-30-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    2

    Re: Move Userform Listbox selected items to another worksheet

    Thanks torachan!

    How do i display the ColumnHeads? it just shows a blank row even though i selected from the listbox properties.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Move Userform Listbox selected items to another worksheet

    You can only apply column heads with the rowsource loading method.

+ 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] Send Multi-selected items from UserForm listbox to cell range.
    By mruu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2019, 06:56 PM
  2. [SOLVED] Copy selected items from listbox in form to a worksheet
    By ymmotteov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2018, 05:20 AM
  3. [SOLVED] Sort selected userform listbox items alphabetically
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-20-2016, 12:15 AM
  4. [SOLVED] Userform - ListBox items added based on Combobox value selected
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-12-2014, 09:12 AM
  5. [SOLVED] Add Selected Items From One ListBox to Another ListBox on UserForm
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 06:53 PM
  6. [SOLVED] Move Listbox items up and down (ActiveX on a worksheet)
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-20-2012, 05:18 AM
  7. Transfer Selected UserForm ListBox Items into a new Row
    By oumomof3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-25-2011, 02:02 PM

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