+ Reply to Thread
Results 1 to 3 of 3

pastespecial method of range class failed

  1. #1
    Registered User
    Join Date
    12-27-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    pastespecial method of range class failed

    Hey, I am working on a program with multiple excel files, copying the same cells off each one, and adding the transpose of all of them to a table in access. The programming is in vba in access. However, the pasteSpecial method isn’t working for me, and I’m always getting a “pastespecial method of range class failed”. I tried a lot of things already but nothing seems to work.

    So I tried something simpler, simply adding values to an excel document, copying and pasting the transpose two cells over with the pasteSpecial. But it’s STILL not working. When I run the program, the excel sheet opens and I see the data, I see it's copied, and the cell E1 is selected, but it's not pasting. I can go in and manually press pasteSpecial, transpose. But the coding isn't running this part of the program, and is consistently throwing the "pastespecial method of range class failed" error.

    Can someone see what I’m doing wrong with this simple program, and hopefully I can apply it to the more complicated program?

    Thanks a million.

    Please Login or Register  to view this content.
    I also cross posted in the MrExcel forum, and they pointed out that I didn't have my reference to the Excel object library checked.
    http://www.mrexcel.com/forum/showthread.php?t=601528
    So this is solved.

    Thank you for pointing out the flaws in my posts and habits. I have never used forum for help before, so it's been a good experience.
    Last edited by Fansons1; 12-28-2011 at 05:02 PM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,331

    Re: pastespecial method of range class failed

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this, then please edit your post accordingly.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    12-27-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: pastespecial method of range class failed

    Romperstomper, I did what you said
    Marked as solved.
    Last edited by Fansons1; 12-28-2011 at 05:01 PM.

+ 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