Hi,
i have a command button on sheet one and want to copy info to sheet7 with the following code
Windows("StockOnHand01.csv").Activate
Sheets("StockOnHand01").Range("A1:AF25000").Select
Selection.Copy
Windows("Test1.xls").Activate
Sheet7.Activate
Sheet7.Range("A1").Select
Sheet7.Range("A1").Paste 'This is where the code boms out
The code copies the info correctly into its memory and selects the cell in sheet7 correctly but it does not want to paste the code, error message of "do not support this object"
any ideas?
i have a command button on sheet one and want to copy info to sheet7 with the following code
Windows("StockOnHand01.csv").Activate
Sheets("StockOnHand01").Range("A1:AF25000").Select
Selection.Copy
Windows("Test1.xls").Activate
Sheet7.Activate
Sheet7.Range("A1").Select
Sheet7.Range("A1").Paste 'This is where the code boms out
The code copies the info correctly into its memory and selects the cell in sheet7 correctly but it does not want to paste the code, error message of "do not support this object"
any ideas?