+ Reply to Thread
Results 1 to 3 of 3

This selection isn't valid. Make sure the copy and paste don't overlap.

  1. #1
    Registered User
    Join Date
    12-09-2019
    Location
    Guelph, Canada
    MS-Off Ver
    office 365
    Posts
    8

    This selection isn't valid. Make sure the copy and paste don't overlap.

    I can't seem to get rid of this error.

    Please Login or Register  to view this content.
    The line in red is where I get the error.

    I've tried the macros separately and it works just fine but the above code is part of a larger macros, this is when it's problematic.

    I've attached an example excel file for reference. I appreciate the help, thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: This selection isn't valid. Make sure the copy and paste don't overlap.

    It errors on row 1. You can't cut row 1 and insert it back at row 1.

    You don't need to check row one anyway. Start your loop at row 2
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    12-09-2019
    Location
    Guelph, Canada
    MS-Off Ver
    office 365
    Posts
    8

    Re: This selection isn't valid. Make sure the copy and paste don't overlap.

    Thank you for your reply. I tried starting at row 2 and it doesn't insert the row at all. I'm confused now.

+ 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. Allow to copy and paste only valid data over data validation cells
    By inoka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2018, 04:55 AM
  2. Allow to copy and paste only valid data over data validation cells
    By inoka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2018, 03:36 AM
  3. [SOLVED] VBA copy paste a selection then find the current date and copy this selection row 61
    By woocaro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2015, 11:07 AM
  4. Copy/paste only valid cells Excel
    By nicolslavanda in forum Excel General
    Replies: 1
    Last Post: 02-12-2015, 11:25 PM
  5. How do I make the copy/paste of one column contingent on the copy/paste of another?
    By Kwasimitsu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2014, 01:51 PM
  6. 1004 This selection is not valid.
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2010, 11:50 AM
  7. Comparing Times To Make Sure No Overlap
    By Matt in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-29-2006, 11:40 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