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.
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.![]()
Please Login or Register to view this content.
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.
Bookmarks