+ Reply to Thread
Results 1 to 6 of 6

copy then paste as values on multiple selections

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    copy then paste as values on multiple selections

    Hi all,

    I'm using a macro to copy and paste ranges as values once they have been recalculated, however, there are multiple selections, hence it returns an error when running the code. Is there a workaround for that? I currently use:

    Please Login or Register  to view this content.
    but instead want to use:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: copy then paste as values on multiple selections

    One other way...Not simpler
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Re: copy then paste as values on multiple selections

    Quote Originally Posted by sintek View Post
    One other way...Not simpler
    Please Login or Register  to view this content.
    Indeed not simpler at all. I did some more research and found the following code that works great for one range:

    Please Login or Register  to view this content.
    However, how would I now use two ranges? Below doesn't seem to work...

    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: copy then paste as values on multiple selections

    As far as I know it is not possible to copy non contiguous ranges and paste as values over themselves...

  5. #5
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Re: copy then paste as values on multiple selections

    But

    Please Login or Register  to view this content.
    isn't copy and pasting...?

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: copy then paste as values on multiple selections

    Try...Untested
    Please Login or Register  to view this content.

    Edit
    Nope, does not work

    Your ranges are not same length
    Last edited by sintek; 07-11-2018 at 05:32 AM.

+ 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/paste data using checkbox-clear when unchckd & multiple selections paste in next cell
    By Staceymcw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2015, 12:09 AM
  2. Copy/Paste Multiple Selections
    By molly13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2015, 12:59 PM
  3. copy paste values over multiples selections
    By ammartino44 in forum Excel General
    Replies: 6
    Last Post: 05-08-2015, 01:52 AM
  4. Copy Conditional Selections and Paste in Empty Cells Specified
    By smciesl2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2014, 01:53 PM
  5. Copy Conditional Selections and Paste in Empty Cells Specified
    By smciesl2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-23-2014, 11:00 AM
  6. Copy and paste for multiple selections
    By amartino44 in forum Excel General
    Replies: 3
    Last Post: 07-12-2013, 02:34 PM
  7. Search, Copy and Paste selections of a column
    By Adamcadaver in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-21-2010, 04:39 AM

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