Hi,
This question was asked in another thread but as its actually a separate issue I have marked that as solved and starting this one
https://www.excelforum.com/excel-pro...to-number.html
The code below is used from a button where 4 macros run in sequence
I have a page of data at work not sure what the source is but when I copy it straight in to excel it doesn't copy right, when I copy and paste in to notepad and then copy that and paste in to excel it works hence why my code has the sequence it does.
When I first open the workbook data copies correctly to Sheet1 and then into sheet(Variances) as required, when I then go to paste more data I get the Error 1004 Paste method of Worksheet class failed![]()
Please Login or Register to view this content.
I know there has been a lot of posts about this and I have search many and tries many things but can't work it out.
Directly after closing the error message I Ctrl+V and data pastes so I know clipboard is not empty, I'm thinking maybe a focus/active window issue
So just to clarify, open excel file sample1 and txt file sample2, copy data in txt file go back to excel Variances sheet and click button 'Copy to Paste Data', should copy ok. Open again the txt file copy data and click button in excel and error occurs
Any help please
Bookmarks