+ Reply to Thread
Results 1 to 1 of 1

Size and shape of data in clip board conflict with paste/special area4

  1. #1
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Size and shape of data in clip board conflict with paste/special area4

    Hi All,

    I'm looking for the right way to handle this error that I'm receiving. Actually, it's an error; but most likely due to my faulty code. This is what I'm looking to do. There's an area in my spreadsheet that I want people to paste data into. This area has special formatting, so I'm replacing the ctrl+v and adding a paste button, to do a special paste into that area. Unfortunately, the amount of data that is copied and pasted varies; so when the code attempts to paste/special the values into the area, I get a "Data on the Clipboard is not the same size and shape as the selected area. Do you want to paste the data anyway" message. I don't want this message, but I know it has to do with the method in which I'm pasting the data.

    below is my code:

    Please Login or Register  to view this content.
    The error is occurring after the ".PasteSpecial xlPasteValues"

    This sheet dimensions of the area is 36 Rows X 3 Columns. but, the amount of data pasted into the area can vary by the row amounts, but is always consistent in terms of the columns.

    I thought that I could check the content/dimensions of the data inside of the clipboard and then use those dimensions to map to the appropriate area size, this will also allow me to check the data in the clipboard.

    but, if there's another workaround, and a more "correct" way of doing this; I would be much obliged to hearing the remedy.

    Thanks,
    Bob1980
    Last edited by Bob1980; 04-23-2014 at 04:55 PM.

  2. #2
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: Size and shape of data in clip board conflict with paste/special area4

    Nevermind! LOL,

    I just changed the range of cells that is being pasted into, to the upper left corner "cells(4,3)" as opposed to the whole range. I guess excel at this point is use to this type of selection, so it err handles itself. Below is the update:

    Please Login or Register  to view this content.
    Thanks a bunch to everyone still, I wouldn't have been able to get to this point if it weren't for this community.

    Thanks,
    Bob

  3. #3
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: Size and shape of data in clip board conflict with paste/special area4

    Nevermind! LOL,

    I just changed the range of cells that is being pasted into, to the upper left corner "cells(4,3)" as opposed to the whole range. I guess excel at this point is use to this type of selection, so it err handles itself. Below is the update:

    Please Login or Register  to view this content.
    Thanks a bunch to everyone still, I wouldn't have been able to get to this point if it weren't for this community.

    Thanks,
    Bob

+ 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. Mcros conflict, Force Paste Special
    By Ralem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 01:34 AM
  2. Key board short cut - paste special value
    By vinumv in forum Excel General
    Replies: 5
    Last Post: 09-28-2009, 10:08 AM
  3. Clip board Data
    By stoney1977 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2008, 06:24 PM
  4. HOW DO YOU PASTE FROM THE CLIP BOARD?
    By PARADISE1333 in forum Excel General
    Replies: 1
    Last Post: 01-14-2006, 11:00 AM
  5. [SOLVED] How can I stop the clip board icon appearing after every paste
    By glennando in forum Excel General
    Replies: 2
    Last Post: 03-22-2005, 08:08 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