Hi, all I am trying to do is copy data from one file ("allcompanies.xls") and paste it to another file ("test.xls"). Allcompanies.xls are results from a query in Access and so the size of it can vary every time it is opened. The problem I am having is that I can't run this macro if they are two different sizes. Excel comes back with a message that says data is different sizes. My code looks like this:
Any help would be greatly appreciated,
Phil
Code:
Windows("all companies.xls").Activate
Cells.Select
Selection.Copy
Windows("test.xls").Activate
Sheets("all companies").Select
ActiveSheet.Paste
Any help would be greatly appreciated,
Phil