+ Reply to Thread
Results 1 to 5 of 5

Copy / Paste Non-Contiguous Cells - User Selected

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Copy / Paste Non-Contiguous Cells - User Selected

    I have been unable to construct a macro for the following and looking for assistance :

    The user will select a half dozen or so cells from the active worksheet.

    The selected cells are in no particular range or order.

    It is unknown which cells the user will select.


    By holding down the CTRL key and clicking on the various cells - all desired the cells are selected.

    The user 'copies' these cells then pastes that data to another location (not predetermined).

    The location is a row and the data will display (for example): F20, F21, F22, F23, etc.


    Your thoughts ?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    13,037

    Re: Copy / Paste Non-Contiguous Cells - User Selected

    I don't think you can copy a collection of disjointed cells using Ctrl,Copy. You would have to write a macro that gets the addresses of the selection, but it would have to stop to get the destination via an inputbox...
    Last edited by protonLeah; 03-06-2017 at 10:18 PM.
    Ben Van Johnson

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Copy / Paste Non-Contiguous Cells - User Selected

    protonLeah:

    Thank you for your response.

    I'm not certain how to proceed with your suggestion. Your thoughts ?

    Here is what I've been trying to work with (my original effort):

    Please Login or Register  to view this content.
    Please advise. This only pastes the last selected cell from copy.

    I am ok with setting a designated location for the pasting. I can change the beginning cell later.
    Attached Files Attached Files
    Last edited by Logit; 03-06-2017 at 10:34 PM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    13,037

    Re: Copy / Paste Non-Contiguous Cells - User Selected

    If you are selecting a single row from D:H then this might help:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,485

    Re: Copy / Paste Non-Contiguous Cells - User Selected

    Excellent ! Thank you so much !

+ 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. Copy contiguous columns and paste as non-contiguous
    By absconditus in forum Excel General
    Replies: 1
    Last Post: 12-29-2014, 03:17 AM
  2. [SOLVED] Copy/paste user-selected range to/from array
    By taylor_b in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2014, 04:26 PM
  3. [SOLVED] copy and paste from contiguous cells to non-contiguous cells using the = function
    By shameus in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2013, 06:48 PM
  4. Copy cells to a worksheet that is user selected.
    By brent_milne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 05:28 PM
  5. copy data from selected cells , in selected row and paste it to ms word table ?
    By aaashaaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2010, 03:25 PM
  6. Copy and Paste an array (contiguous & non contiguous ranges)
    By Xrull in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2010, 09:17 AM
  7. Trying to work with User-selected non-contiguous ranges
    By Tristan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2006, 08:10 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