+ Reply to Thread
Results 1 to 11 of 11

Error message whne copying alternative cells ranges

  1. #1
    Registered User
    Join Date
    09-27-2018
    Location
    london
    MS-Off Ver
    excel
    Posts
    69

    Error message whne copying alternative cells ranges

    Hi All,


    I am trying to copy and paste cells ranges from one workbook to another. When just selecting 2 ragnes, and therfore two destinations, it seems to be working but as soon as I select 3 ranges I am getting the error message attached

    Any help woukd be great

    Thanks
    V
    Attached Files Attached Files

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

    Re: Error message whne copying alternative cells ranges

    Not sure whether both workbooks are open or which is actual active, but play around with this concept...multiple noncontiguous copy paste...
    Please Login or Register  to view this content.
    Last edited by sintek; 03-27-2019 at 03:58 PM.
    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
    Registered User
    Join Date
    09-27-2018
    Location
    london
    MS-Off Ver
    excel
    Posts
    69

    Re: Error message whne copying alternative cells ranges

    Hi,

    Thanks for coming back to me

    Yeah, you are right, did not elaborate my point. Basically I am trying to copy some cells ranges from the file attached (excel soler, I duess this not the activa but just select) into a workbook, workbook1 (the active (?)) for example. the destinations is not contiguous

    Does this makes sense?

    Thanks a million again and any additonal help would be greatly appreaciated

    Vito01
    Attached Files Attached Files

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

    Re: Error message whne copying alternative cells ranges

    So...this I assume is the macro file...what is the name of the other file it must be copied to...

    The code supplied in post 2 solves your problem...just need to change the red part to the name of the workbook(which is open) which is to be copied to...
    Please Login or Register  to view this content.
    Last edited by sintek; 03-28-2019 at 04:49 AM.

  5. #5
    Registered User
    Join Date
    09-27-2018
    Location
    london
    MS-Off Ver
    excel
    Posts
    69

    Re: Error message whne copying alternative cells ranges

    Hey, for example, it can just be called workbook1

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

    Re: Error message whne copying alternative cells ranges

    Like I said...change red part and code in post 2 solves...

  7. #7
    Registered User
    Join Date
    09-27-2018
    Location
    london
    MS-Off Ver
    excel
    Posts
    69

    Re: Error message whne copying alternative cells ranges

    Thank you!

  8. #8
    Registered User
    Join Date
    09-27-2018
    Location
    london
    MS-Off Ver
    excel
    Posts
    69

    Re: Error message whne copying alternative cells ranges

    Hi, me again. And if I wanted to apply pastespecialvalue or formattting?

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

    Re: Error message whne copying alternative cells ranges

    Please Login or Register  to view this content.
    TO

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    09-27-2018
    Location
    london
    MS-Off Ver
    excel
    Posts
    69

    Re: Error message whne copying alternative cells ranges

    Thank you and have a great day!!

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

    Re: Error message whne copying alternative cells ranges

    iF THIS WORKS, THEN PLEASE MARK THREAD AS SOLVED...tX FOR REP ADDED

+ 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] Working with Ranges - Error Message if Any Cell Blank
    By MKWilson in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 09-22-2014, 11:41 AM
  2. Runtime Error 1004 while copying dinamic ranges
    By mallok in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-29-2013, 09:37 AM
  3. [SOLVED] Alternative message box instead of run time error 1004 box no cells were found
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 04:26 AM
  4. MsgBox to display an alternative Message
    By akynyemi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2013, 08:15 PM
  5. [SOLVED] Copying ranges of cells from different worksheets in a workbook based on an if then
    By stinkybottom in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-13-2012, 09:19 PM
  6. Replies: 2
    Last Post: 08-16-2010, 02:54 PM
  7. Copying ranges of cells from closed workbooks?
    By JHongTurney in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2005, 03:30 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