+ Reply to Thread
Results 1 to 5 of 5

How to stop PasteSpecial popup message

  1. #1
    Registered User
    Join Date
    04-17-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    How to stop PasteSpecial popup message

    Hi I have the below code to iterate and copy/paste data.
    Please Login or Register  to view this content.
    This works fine, but I always get a message saying:

    "Data on the Clipboard is not the same size and shape as the selected area. Do you want to paste the data anyway?"

    The method completes when I click OK, but I am having to do this hundreds of time as there are a lot of files to be created.
    Is there a way to stop this message?

    With Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to stop PasteSpecial popup message

    Try this.
    Please Login or Register  to view this content.
    By the way, where are you running this code? Access? Word? Another application?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-17-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: How to stop PasteSpecial popup message

    Quote Originally Posted by Norie View Post
    Try this.
    Please Login or Register  to view this content.
    By the way, where are you running this code? Access? Word? Another application?
    That was it, thanks! I was running it in Excel. It is odd that this is the solution, as it is going against that the error message is saying, in that both the copy size ("A:U") must be same as the paste area ("A1")!

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to stop PasteSpecial popup message

    If you are running the code in Excel why are you creating a new instance of Excel?

    As for going against the message, you only get that message if you try and copy into a specific range.

    Using one cell tells Excel you want to paste starting at that cell.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How to stop PasteSpecial popup message

    Please don't cross post, it wastes peoples time.

+ 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. How to stop the help popup window with circular references?
    By ericsastud in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2019, 03:48 AM
  2. Popup message
    By buckshot in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-07-2010, 05:26 PM
  3. Stop read only popup box
    By superbob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 08:33 AM
  4. Data Validation popup stop following cell
    By JK1234 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-08-2010, 09:52 AM
  5. Message Box Popup with Yes or No
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2008, 03:19 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