Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default using .copy to copy a worksheet several times

I have a loop to load data into a worksheet, copy that worksheet into a
different workbook, and then do it again with the next set of data.
After over 50 itterations the copy sheet method fails.
What can I do? I need to run about 150 iterations. I want to use the .copy
so that the print formatting comes over.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default using .copy to copy a worksheet several times

Tonya, what verison of Excel are you using?

Try unchecking all add-ins you don't need. Too many add-ins can cause
memory problems. Also remove COM add-ins. If you need help on how to
remove, please reply to the group with your version of Excel.

Robert Flanagan
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel


You may need more memory on your PC. How much do you have? Minimum for
2003 for me is 1GB and for Excel 2007 is 2GB. It can obviously run with far
less, but problems happen.
"Tonya" wrote in message
...
I have a loop to load data into a worksheet, copy that worksheet into a
different workbook, and then do it again with the next set of data.
After over 50 itterations the copy sheet method fails.
What can I do? I need to run about 150 iterations. I want to use the
.copy
so that the print formatting comes over.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default using .copy to copy a worksheet several times

Perhaps there is a memory leak due to bad coding. Check this for several
Copy/Paste/Merge examples:
http://www.rondebruin.nl/tips.htm

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Robert Flanagan" wrote:

Tonya, what verison of Excel are you using?

Try unchecking all add-ins you don't need. Too many add-ins can cause
memory problems. Also remove COM add-ins. If you need help on how to
remove, please reply to the group with your version of Excel.

Robert Flanagan
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel


You may need more memory on your PC. How much do you have? Minimum for
2003 for me is 1GB and for Excel 2007 is 2GB. It can obviously run with far
less, but problems happen.
"Tonya" wrote in message
...
I have a loop to load data into a worksheet, copy that worksheet into a
different workbook, and then do it again with the next set of data.
After over 50 itterations the copy sheet method fails.
What can I do? I need to run about 150 iterations. I want to use the
.copy
so that the print formatting comes over.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default using .copy to copy a worksheet several times

See
http://support.microsoft.com/kb/210684/en-us



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"ryguy7272" wrote in message ...
Perhaps there is a memory leak due to bad coding. Check this for several
Copy/Paste/Merge examples:
http://www.rondebruin.nl/tips.htm

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Robert Flanagan" wrote:

Tonya, what verison of Excel are you using?

Try unchecking all add-ins you don't need. Too many add-ins can cause
memory problems. Also remove COM add-ins. If you need help on how to
remove, please reply to the group with your version of Excel.

Robert Flanagan
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel


You may need more memory on your PC. How much do you have? Minimum for
2003 for me is 1GB and for Excel 2007 is 2GB. It can obviously run with far
less, but problems happen.
"Tonya" wrote in message
...
I have a loop to load data into a worksheet, copy that worksheet into a
different workbook, and then do it again with the next set of data.
After over 50 itterations the copy sheet method fails.
What can I do? I need to run about 150 iterations. I want to use the
.copy
so that the print formatting comes over.




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
'move or copy' a single worksheet multiple times DebC Excel Discussion (Misc queries) 10 April 3rd 23 04:26 PM
copy a worksheet to new one with repeat rows 5 times mfn Excel Discussion (Misc queries) 0 February 13th 08 11:33 AM
copy worksheet multiple times base on user's input [email protected] Excel Worksheet Functions 2 June 15th 07 05:51 PM
Copy from worksheet to another x times Union70 Excel Discussion (Misc queries) 0 March 7th 05 09:03 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM


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

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

About Us

"It's about Microsoft Excel"