LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Range.Copy and error 1004

I have a large named range that I want to save to another workbook, and I'm
trying to use the following sequence:

Range("FS_OUTPUT").Copy
Workbooks.Add
ActiveSheet.Paste
ActiveWorkbook.SaveAs ...
ActiveWorkbook.Close

I'm doing this because I don't want to affect the current workbook file
name -- I want to save the range to another file, keeping the original file
intact. All of this works except for the Range.Copy; at the Range.Copy line
I'm getting the following message:

Run-time error '1004':
Method 'Range' of object '_Global' failed

The range is a pretty large one (it spans several worksheets). I looked up
error 1004 in the Knowledge Base, and it looks like the problem might be
that there is too much data -- maybe the clipboard is getting overloaded?
One KB article said something about periodically saving the workbook during
the copy. Might that be the problem? If it is, I'm not sure how to get
around the problem except to maybe split up my named range into several
ranges, and do each one individually to the same workbook.

Has anyone else ever run into a similar problem?

Thanks,

Carl Rapson


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 1004 Copy method of worksheet class failed Ayo Excel Discussion (Misc queries) 3 March 28th 08 02:05 PM
Run-time 1004 error on range select Morgan[_3_] Excel Programming 3 November 11th 03 11:44 PM
Range.cells.calculate give error 1004 only in XP Stef[_3_] Excel Programming 1 October 31st 03 02:57 PM
error 1004 Select method of Range class failed J.E. McGimpsey Excel Programming 1 September 12th 03 07:42 PM
error 1004 - metod Copy of class Range was failed Tom Ogilvy Excel Programming 1 September 10th 03 09:17 AM


All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"