Hi,
I have created a few tools in Excel that use VBA to access SAP, copy data from SAP then paste it back in to an Excel workbook. They have been working fine for a couple of years, but now whenever they get to the activesheet.paste I am getting error 1004 'Excel cannot paste the data'. The odd thing is that if you debug and hit F5 it pastes the data and carries on fine. The macro also works fine if you have the VBA window open. I've tried writing new scripts and get the same issue. Any ideas why this would happen all of a sudden?
Thanks,
I have created a few tools in Excel that use VBA to access SAP, copy data from SAP then paste it back in to an Excel workbook. They have been working fine for a couple of years, but now whenever they get to the activesheet.paste I am getting error 1004 'Excel cannot paste the data'. The odd thing is that if you debug and hit F5 it pastes the data and carries on fine. The macro also works fine if you have the VBA window open. I've tried writing new scripts and get the same issue. Any ideas why this would happen all of a sudden?
Thanks,