View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
sakieboy[_6_] sakieboy[_6_] is offline
external usenet poster
 
Posts: 1
Default EXCEL VBA - Run-time Error 1004

I started Excel, Personal.xls
Created 2 Sheets, Sheet1 and Sheet2,
Created a macro, and out this in the macro
Sheets(Array("Sheet1", "Sheet2")).Select
Sheets("Sheet1").Activate
Sheets(Array("Sheet1", "Sheet2")).Copy

I ran it and got the same error
run-time error '1004' Copy method of Sheets class failed

I then put a break point on the top line of the Macro and when it hi
the break point I manually selected the 2 Worksheets and placed th
following code in my immediate box and got the same error.

Sheets(Array("Sheet1", "Sheet2")).Copy


Thanks:confused

--
Message posted from http://www.ExcelForum.com