Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Excel cannot complete this taks with available resources... why?

You only need to copy the range once. However, what you got should work.
But since it isn't working, see if Excel complains with this...

Sub Populate_Stocks3()
Application.ScreenUpdating = False
Worksheets("Input_Stocks").Range("c:f").Copy

Worksheets("WorkCap1").Range("A:D").PasteSpecial
Worksheets("WorkCap2").Range("A:D").PasteSpecial
Worksheets("MISC").Range("A:D").PasteSpecial
Worksheets("MISC2").Range("A:D").PasteSpecial
Worksheets("MISC3").Range("A:D").PasteSpecial
Worksheets("MISC4").Range("A:D").PasteSpecial
Worksheets("MISC5").Range("A:D").PasteSpecial
Worksheets("PeriodDate").Range("A:D").PasteSpecial

Application.CutCopyMode = False
Sheets("Instructions").Select
Application.ScreenUpdating = True
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"SteveC"
wrote in message
Using the following code from a Bernie Deitrick post. It works fine until it
gets to sheet MISC5, then I get the error: Excel cannot complete this task
with available resources. Choose less data or close other applications.

Then I click "ok", and i get another errror message, this one from the VBA:
run time error 1004 copy of range class message failed."

Even when I break up the code into tinier pieces, it almost always stops at
worksheet MISC5 wtih the above error msg. There is nothing about that
worksheet that is unusually different than other worksheets. Am I doing
anything wrong with this code, or is there anything else I can do? thanks a
lot. SteveC

Sub Populate_Stocks3()
Application.ScreenUpdating = False
Worksheets("Input_Stocks").Range("c:f").Copy
Worksheets("WorkCap1").Range("A:D")
Worksheets("Input_Stocks").Range("c:f").Copy
Worksheets("WorkCap2").Range("A:D")
Worksheets("Input_Stocks").Range("c:f").Copy Worksheets("MISC").Range("A:D")
Worksheets("Input_Stocks").Range("c:f").Copy Worksheets("MISC2").Range("A:D")
Worksheets("Input_Stocks").Range("c:f").Copy Worksheets("MISC3").Range("A:D")
Worksheets("Input_Stocks").Range("c:f").Copy Worksheets("MISC4").Range("A:D")
Worksheets("Input_Stocks").Range("c:f").Copy Worksheets("MISC5").Range("A:D")
Worksheets("Input_Stocks").Range("c:f").Copy
Worksheets("PeriodDate").Range("A:D")

Sheets("Instructions").Select
Application.ScreenUpdating = True
End
Reply
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
Excel cannot complete this task with availible resources SACoull Setting up and Configuration of Excel 1 October 30th 09 10:16 AM
Excel cannot complete this task with available resources PSM[_15_] Excel Worksheet Functions 1 June 12th 09 11:26 PM
Excel cannot complete this task with available resources. Ali Excel Worksheet Functions 2 August 1st 08 07:49 AM
Excel 2002 error: cannot complete with available resources when co lbagwell Excel Discussion (Misc queries) 0 January 23rd 07 08:26 PM
Excel cannot complete this task with available resources. ChopperChand Excel Discussion (Misc queries) 0 April 20th 06 04:21 PM


All times are GMT +1. The time now is 07:17 AM.

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"