+ Reply to Thread
Results 1 to 6 of 6

PasteSpecial Method of Range Class Failed

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    30

    PasteSpecial Method of Range Class Failed

    Please help! I cannot understand why I might be getting the runtime 1004 error: PasteSpecial Method of Range Class Failed for the red highlighted line.

    What I am trying to do:

    When a user completely fills out the form they click a button to copy the information to another workbook. I want the copied information to be sorted in descending order, thus it inserts a blank row at the top, copies the first line of info, pastes the values to that blank first row, then repeats.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: PasteSpecial Method of Range Class Failed

    Do you have a sheet called "Record"?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: PasteSpecial Method of Range Class Failed

    Quote Originally Posted by AB33 View Post
    Do you have a sheet called "Record"?

    Please Login or Register  to view this content.
    Yes, it is Sheet1 of wbOpen

  4. #4
    Registered User
    Join Date
    01-28-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: PasteSpecial Method of Range Class Failed

    Nevermind!!! I just realized the line should read

    Please Login or Register  to view this content.
    not "Operation"

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: PasteSpecial Method of Range Class Failed

    I did not notice it, but I normally tend to remove named argument and that resolves the error.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: PasteSpecial Method of Range Class Failed

    Nevermind...
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. [SOLVED] PasteSpecial method of Range class failed
    By lottidotti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2013, 08:21 AM
  2. pastespecial method of range class failed
    By Fansons1 in forum Access Tables & Databases
    Replies: 2
    Last Post: 12-28-2011, 04:56 PM
  3. PasteSpecial method of Range class failed
    By siddharth.sinha in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-11-2010, 01:07 PM
  4. PasteSpecial method of Range class failed
    By reborges in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2007, 02:27 PM
  5. PasteSpecial method of Range class failed
    By windsor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-06-2005, 06:05 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