Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Increasing memory/no of worksheets in excel

I have a weekly programming programme in excel that adds a new worksheet for
each week. Unfortunately it only works up to 44weeks and then hits a runtime
error. On another computer it only gets to 43weeks. Reading Excel help I
understand the number of worksheets is limited by memory.

Is there any chance that this can be overcome to allow more sheets to be
added?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Increasing memory/no of worksheets in excel

44 sheets doesn't sound like it would consume a lot of RAM. How much memory
do you have on your machine?

Dave
--
Brevity is the soul of wit.


"Bug289" wrote:

I have a weekly programming programme in excel that adds a new worksheet for
each week. Unfortunately it only works up to 44weeks and then hits a runtime
error. On another computer it only gets to 43weeks. Reading Excel help I
understand the number of worksheets is limited by memory.

Is there any chance that this can be overcome to allow more sheets to be
added?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Increasing memory/no of worksheets in excel

You don't tell much about your hardware or your layout with, as yet,
unneeded formulas or formatting. Also, unless you are going to exceed the
available rows it it NOT necessary to have a worksheet for each week. Put
all on ONE and then use filters or formulas to tell you about each week.

--
Don Guillett
SalesAid Software

"Bug289" wrote in message
...
I have a weekly programming programme in excel that adds a new worksheet
for
each week. Unfortunately it only works up to 44weeks and then hits a
runtime
error. On another computer it only gets to 43weeks. Reading Excel help I
understand the number of worksheets is limited by memory.

Is there any chance that this can be overcome to allow more sheets to be
added?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,582
Default Increasing memory/no of worksheets in excel

How are you adding the sheet? There is a resource problem with Sheets.Copy
in VBA.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Bug289" wrote in message
...
I have a weekly programming programme in excel that adds a new worksheet
for
each week. Unfortunately it only works up to 44weeks and then hits a
runtime
error. On another computer it only gets to 43weeks. Reading Excel help I
understand the number of worksheets is limited by memory.

Is there any chance that this can be overcome to allow more sheets to be
added?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Increasing memory/no of worksheets in excel

I just used this with NO problem

Sub mynewsheets()
For i = 1 To 200
On Error Resume Next
Sheets.Add.Name = i
Next i
End Sub

--
Don Guillett
SalesAid Software

"Bug289" wrote in message
...
I have a weekly programming programme in excel that adds a new worksheet
for
each week. Unfortunately it only works up to 44weeks and then hits a
runtime
error. On another computer it only gets to 43weeks. Reading Excel help I
understand the number of worksheets is limited by memory.

Is there any chance that this can be overcome to allow more sheets to be
added?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Increasing memory/no of worksheets in excel

This is the main module, the rest seem to be mostly setting formatting.

Sub Add_week()
'
' Add_week Macro
' Add weekly programme sheet
'
' Keyboard Shortcut: Ctrl+w
'
ActiveSheet.Unprotect
Sheets("Contract").Select
strReturnValue1 = Range("A2")
strReturnValue2 = Range("B1")
strReturnValue3 = Range("a3")
strReturnValue4 = Range("b3")
Sheets("Blank").Select
Sheets("Blank").Copy Befo=Sheets("end")
Sheets("Blank (2)").Select
Sheets("Blank (2)").Name = strReturnValue1
ActiveSheet.Unprotect
Range("C9:I54").Select
Selection.ClearContents
Range("D9:I54").Select
Application.Run "'Weekly Programme_01.xls'!unfill"
Range("K9:O54").Select
Application.Run "'Weekly Programme_01.xls'!unfill"
ActiveSheet.Unprotect
Range("P9:P54").Select
Selection.ClearContents
Range("c2").Select
ActiveCell.FormulaR1C1 = strReturnValue3
Sheets("Contract").Select
Range("A1").Select
ActiveCell.FormulaR1C1 = strReturnValue2
Range("A3").Select
ActiveCell.FormulaR1C1 = strReturnValue4
Range("C1").Select
Selection.Locked = False
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub

When I debug it stops at this line:
Sheets("Blank").Copy Befo=Sheets("end")
if that helps.

thanks

"Jon Peltier" wrote:

How are you adding the sheet? There is a resource problem with Sheets.Copy
in VBA.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Bug289" wrote in message
...
I have a weekly programming programme in excel that adds a new worksheet
for
each week. Unfortunately it only works up to 44weeks and then hits a
runtime
error. On another computer it only gets to 43weeks. Reading Excel help I
understand the number of worksheets is limited by memory.

Is there any chance that this can be overcome to allow more sheets to be
added?




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,582
Default Increasing memory/no of worksheets in excel

This is the kind of syntax that would lead to a problem in my scenario. The
more intricate the sheet (and the less system RAM) the sooner it would crap
out.

Is the "Blank" sheet really blank? Just use Sheets.Add

Is the "Blank" sheet something you could change to a template on its own?
Then use Sheets.Add(Type:=PathAndFileName) where PathAndFileName is the full
name of the template.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Bug289" wrote in message
...
This is the main module, the rest seem to be mostly setting formatting.

Sub Add_week()
'
' Add_week Macro
' Add weekly programme sheet
'
' Keyboard Shortcut: Ctrl+w
'
ActiveSheet.Unprotect
Sheets("Contract").Select
strReturnValue1 = Range("A2")
strReturnValue2 = Range("B1")
strReturnValue3 = Range("a3")
strReturnValue4 = Range("b3")
Sheets("Blank").Select
Sheets("Blank").Copy Befo=Sheets("end")
Sheets("Blank (2)").Select
Sheets("Blank (2)").Name = strReturnValue1
ActiveSheet.Unprotect
Range("C9:I54").Select
Selection.ClearContents
Range("D9:I54").Select
Application.Run "'Weekly Programme_01.xls'!unfill"
Range("K9:O54").Select
Application.Run "'Weekly Programme_01.xls'!unfill"
ActiveSheet.Unprotect
Range("P9:P54").Select
Selection.ClearContents
Range("c2").Select
ActiveCell.FormulaR1C1 = strReturnValue3
Sheets("Contract").Select
Range("A1").Select
ActiveCell.FormulaR1C1 = strReturnValue2
Range("A3").Select
ActiveCell.FormulaR1C1 = strReturnValue4
Range("C1").Select
Selection.Locked = False
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True
End Sub

When I debug it stops at this line:
Sheets("Blank").Copy Befo=Sheets("end")
if that helps.

thanks

"Jon Peltier" wrote:

How are you adding the sheet? There is a resource problem with
Sheets.Copy
in VBA.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Bug289" wrote in message
...
I have a weekly programming programme in excel that adds a new worksheet
for
each week. Unfortunately it only works up to 44weeks and then hits a
runtime
error. On another computer it only gets to 43weeks. Reading Excel
help I
understand the number of worksheets is limited by memory.

Is there any chance that this can be overcome to allow more sheets to
be
added?






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 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Overview Improvements for Excel Worksheets Feda Excel Discussion (Misc queries) 5 September 18th 07 10:08 PM
How to Set background color XLM Excel worksheets in Netscape andFirefox browsers udarrell Excel Discussion (Misc queries) 1 March 8th 06 01:37 PM
Appending excel worksheets Rbuzard Excel Worksheet Functions 3 September 13th 05 11:57 AM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM


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