+ Reply to Thread
Results 1 to 3 of 3

ActiveSheet.Paste failing(Runtime error '1004')

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    1

    ActiveSheet.Paste failing(Runtime error '1004')

    ActiveSheet.Paste is failing in Excel vetrsion 2010. I'm getting the following error.
    Runtime error '1004'
    paste method of worksheet class failed

    But when I run in debug mode ActiveSheet.Paste works.

    The macro reads a selected pdf file and writes to a excel sheet. Below is the code .

    Any ideas why ActiveSheet.Paste is failing in the code below. The same code works in Excel 2002


    _____________________________________________________________________________________________________________

    Please Login or Register  to view this content.
    Last edited by arlu1201; 07-12-2013 at 10:28 AM. Reason: Use code tags in future.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,794

    Re: ActiveSheet.Paste failing(Runtime error '1004')

    Try changing
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Alf

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

    Re: ActiveSheet.Paste failing(Runtime error '1004')

    Are you sure something is being copied?
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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