ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   What is wrong with this line of code (https://www.excelbanter.com/excel-programming/433774-what-wrong-line-code.html)

Ayo

What is wrong with this line of code
 
This was working fine before and all of a sudden I starting getting
"PasteSpecial method of Range class failed"

Selection.PasteSpecial Paste:=xlPasteAll

Any ideas why?

JLGWhiz[_2_]

What is wrong with this line of code
 
Probably your Selection. PasteSpecial must have enough space to accommodate
what was put on the clipboard. Since you did not post all of the code, it
is just a guess.


"Ayo" wrote in message
...
This was working fine before and all of a sudden I starting getting
"PasteSpecial method of Range class failed"

Selection.PasteSpecial Paste:=xlPasteAll

Any ideas why?





All times are GMT +1. The time now is 07:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com