Closed Thread
Results 1 to 3 of 3

Copy, paste, and clear contents (i.e move) a range depending on combobox selection

  1. #1
    Registered User
    Join Date
    12-01-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    11

    Copy, paste, and clear contents (i.e move) a range depending on combobox selection

    Good morning all,

    I am not sure the correct terminology to search for what I am trying to accomplish, so thank you for your patience and apologies if this has been addressed before under different keywords.

    I have attached a workbook where I have designed 20-some equally spaced sections.
    At the top, the transfer button brings up a userform that will move a certain selection around the spreadsheet depending on the input and output arrows. column B calculates based on the contents of column C, so it can't be a simply cut+paste. I don't know really know where to start with the logic behind a VBA script that can be attached to the userform.

    The range to move around would be c4:s15 offset by 13 rows for each section / selection in the combobox on the userform, destination would be c4 offset by 13 rows for each selection

    This is an interim solution until our facility program developer can formally work on a professionally designed and implemented solution to keep track of 20 or so patient details.

    Please let me know if you all need any more details.

    Thanks in advance

  2. #2
    Registered User
    Join Date
    12-01-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    11

    Re: Copy, paste, and clear contents (i.e move) a range depending on combobox selection

    Here is the file
    Attached Files Attached Files

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,493

    Re: Copy, paste, and clear contents (i.e move) a range depending on combobox selection

    Thread closed in favour of one in Commercial Services.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy / Paste row on a different tabs depending on the selection B2
    By xatomicx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2017, 06:19 PM
  2. Macro to copy and paste a range of cells based on ComboBox selection
    By Paul103 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-07-2015, 03:21 PM
  3. [SOLVED] If each cell in range equals 0 then clear contents of range and move to the next row
    By dagardner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2014, 08:44 PM
  4. VBA To Copy Cell Contents and Paste Depending on Dropdown Selection
    By josh_paley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2014, 04:42 PM
  5. VBA Code to copy and paste a row depending on selection made in a combobox
    By ssu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2013, 05:37 AM
  6. Replies: 18
    Last Post: 02-10-2013, 05:32 PM
  7. [SOLVED] Copy/Paste & Clear Contents Macro on multiple spreadsheet
    By greggatz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-01-2012, 10:16 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