Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Error in loop

I'm creating new sheets by copying a template sheet.
My loop requires that Excel make about 90 sheets and place
them at the end. After the 15th however, it seems to run
out of memory and just give me an error. Even when I
switch to Excel, I can't even manually copy a sheet:

This is my copy line to be repeated 90 times.
Sheets("Template").Copy After:=Sheets(Sheets.Count)

Any ideas?

Thanks
Daniel
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Error in loop

Are you using Excel 97 Daniel ?


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Daniel Bonallack" wrote in message ...
I'm creating new sheets by copying a template sheet.
My loop requires that Excel make about 90 sheets and place
them at the end. After the 15th however, it seems to run
out of memory and just give me an error. Even when I
switch to Excel, I can't even manually copy a sheet:

This is my copy line to be repeated 90 times.
Sheets("Template").Copy After:=Sheets(Sheets.Count)

Any ideas?

Thanks
Daniel



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Error in loop

Daniel problem was naming the sheets as a cell value.
There where duplicate names in the range

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Ron de Bruin" wrote in message ...
Are you using Excel 97 Daniel ?


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Daniel Bonallack" wrote in message ...
I'm creating new sheets by copying a template sheet.
My loop requires that Excel make about 90 sheets and place
them at the end. After the 15th however, it seems to run
out of memory and just give me an error. Even when I
switch to Excel, I can't even manually copy a sheet:

This is my copy line to be repeated 90 times.
Sheets("Template").Copy After:=Sheets(Sheets.Count)

Any ideas?

Thanks
Daniel





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
stuck in an error loop Darla Excel Discussion (Misc queries) 1 January 8th 10 06:06 PM
loop code error help!!!! cesaoes Excel Discussion (Misc queries) 2 January 29th 08 04:52 PM
loop error Sam Excel Programming 0 September 25th 03 02:32 PM
loop error Sam Excel Programming 1 September 18th 03 03:09 PM
loop error Sam Excel Programming 0 September 18th 03 02:19 PM


All times are GMT +1. The time now is 04:17 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"