+ Reply to Thread
Results 1 to 3 of 3

Copy, Paste and Move to different sheet - Code 'Part Working' Help

  1. #1
    Registered User
    Join Date
    07-19-2022
    Location
    Newcastle, England
    MS-Off Ver
    Office 2016
    Posts
    2

    Copy, Paste and Move to different sheet - Code 'Part Working' Help

    Hi All,
    I have a sheet with a drop down selection box in each row that needs the data to be moved to a different sheet depending upon the selection.
    In this example, i want "selection1" from sheet1 to copy into sheet2. I then need "Selection2" to copy into Sheet3 and then "Selection3 to copy to Sheet4 (if that makes sense)???
    Now i have this working for one variable but not for the others!
    Below code shows "Selection1" as the drop down selection but when i copy this code and change to the other "selections" it doesn't work!
    Please Login or Register  to view this content.
    Thank You
    Attached Files Attached Files
    Last edited by brenty1892; 07-19-2022 at 09:13 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Copy, Paste and Move to different sheet - Code 'Part Working' Help

    You need the worksheet_change event, not the selection_change event.

    Name the sheets the same as the dropdown selections.

    -
    2022-07-20_3-04-53.jpg

    Please Login or Register  to view this content.
    Delete the selection_Change code.

    See the worksheet events thread
    https://www.excelforum.com/tips-and-...et-events.html

  3. #3
    Registered User
    Join Date
    07-19-2022
    Location
    Newcastle, England
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: Copy, Paste and Move to different sheet - Code 'Part Working' Help

    Thank you so much for this!

+ 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 Part Row Paste Other Sheet
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-26-2020, 04:16 AM
  2. Replies: 4
    Last Post: 12-28-2018, 02:21 PM
  3. [SOLVED] Copy/Paste part of rows from sheet A to B if value does not exist in sheet B
    By gv29 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-30-2016, 02:33 AM
  4. Macro to copy/paste and replace info to another part of a sheet
    By GregHorn27 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2014, 02:14 AM
  5. Replies: 0
    Last Post: 10-29-2013, 09:38 AM
  6. Simple VBA code to move, copy, paste, and protect
    By clifton1230 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2013, 11:35 AM
  7. Copy & paste PART of cell to new sheet
    By enswitze in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2010, 03:30 AM

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