+ Reply to Thread
Results 1 to 5 of 5

Code failing on ActiveSheet.Paste

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Code failing on ActiveSheet.Paste

    Hello,

    I have the following code which has been working for years. The tab it runs on (using a button via insert shape) is debugging at ActiveSheet.Paste. Any suggestions? I have even rerecorded a macro following the same steps and can't seem to figure out why it is failing. I don't believe the clipboard is being cleared in the code for it to fail. Thanks in advance.


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    02-21-2014
    Location
    Connecticut, U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Code failing on ActiveSheet.Paste

    what code error are you receiving on that line of code?

  3. #3
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Code failing on ActiveSheet.Paste

    run-time error '57121'
    Application-defined or object-defined error

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Code failing on ActiveSheet.Paste

    Maybe:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Code failing on ActiveSheet.Paste

    You are awesome JBeaucaire. Thank you. What is crazy is that code ALWAYS worked before and suddenly doesn't. We have been having some issues here...some people are on 2010 excel and those of us that do more advanced stuff have 2013 (64Bit). Not sure if that is causing some issues or if it is related to a patch. Thanks again!

+ 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. When Activesheet.paste, Run-Time error '1004': Paste method of work sheet class failed.
    By devaraj2020 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2015, 01:59 AM
  2. ActiveSheet.Paste failing(Runtime error '1004')
    By sanjeevap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2013, 12:58 PM
  3. [SOLVED] ActiveSheet.Paste Link:= True Does Not Work After Awhile - 1004 MS Excel cannot paste data
    By zfeinstein in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2013, 04:28 PM
  4. Paste method faile (activesheet.paste)
    By MS Excel in forum Excel General
    Replies: 11
    Last Post: 10-17-2005, 06:05 AM
  5. [SOLVED] [SOLVED] Paste Method failed (Activesheet.Paste)
    By MS Excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2005, 10:05 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