Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Limits of Excel

Hi,
how can I control the limit of Excel?
I mean... Excel has the limit about sheets dipending from memory of
the pc.
Is there a way to stop it before it crashes??
I have a macro which generate lots of sheets with charts but after "n"
sheets it crashes.... I would like to know how I can intercept this
behaviour?

Thanks in advance

Bye Denis

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Limits of Excel

Which version are you using? Excel 2007 sucks: is is much slower and
has many more bugs than 2003. Some VBA macros crash for no reason in
2007 but work fine with 2003.

Other tips I can think of:
- make sure you remove unnecessary rows and columns from your sheets
and save the file after doing so (this once solved a similar problem I
had)
- make sure you clear the clipoboard (application.cutcopymode=false)

Does it always crash at the same point in the code?

On 14 Nov, 10:50, wrote:
Hi,
how can I control the limit of Excel?
I mean... Excel has the limit about sheets dipending from memory of
the pc.
Is there a way to stop it before it crashes??
I have a macro which generate lots of sheets with charts but after "n"
sheets it crashes.... I would like to know how I can intercept this
behaviour?

Thanks in advance

Bye Denis



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Limits of Excel

Hi,

Which version are you using? Excel 2007 sucks: is is much slower and


Excel 2003

Other tips I can think of:
- make sure you remove unnecessary rows and columns from your sheets
and save the file after doing so (this once solved a similar problem I
had)


Every sheet has 4 charts and nothing else... I can't delete
anything ;)

- make sure you clear the clipoboard (application.cutcopymode=false)


I could be this but at the maximum I copy in clipboard 52 cells... I
don't think it could be...

Does it always crash at the same point in the code?


It crashes during creation of the charts... I can't see where it
crahes as Excel close itself without warning.

Bye Denis

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Limits of Excel

On 14 Nov, 11:52, wrote:

Every sheet has 4 charts and nothing else... I can't delete
anything ;)


Check the last used cell (either via VBA or clicking CTRL+END). It
often happens that, if you copy entire sheets or columns, Excel
actually stores 65k rows, even if most of them are blank.


Does it always crash at the same point in the code?


It crashes during creation of the charts... I can't see where it
crahes as Excel close itself without warning.


And if you debug the code setting breakpoints, can you identify where
the problem is?

If it closes without warning, you can't use the statusbar to describe
what portion of the code is running. You could, however, set up a
worksheet, name it "Debug", and write some key metrics to its cells,
e.g. write what step of the macro has just ran, how much memory is
left (there is a way of doing this in 2003 but not in 2007; if you
google I'm sure you'll find something). If you make sure the macro
saves the file after you write to these cells, it might help you
identify the problem.

Can;t think of much else, sorry. I take it you set
application.screenupdating=false and closed all other programs before
running the macro.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Limits of Excel

What do you mean by ... after n sheets it crashes?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
ups.com...
Hi,
how can I control the limit of Excel?
I mean... Excel has the limit about sheets dipending from memory of
the pc.
Is there a way to stop it before it crashes??
I have a macro which generate lots of sheets with charts but after "n"
sheets it crashes.... I would like to know how I can intercept this
behaviour?

Thanks in advance

Bye Denis





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Limits of Excel

Hi,
that it crashes always with a different number of sheets generated.
One time with 30 sheets... the other one with 24... there's no sure
number...
I read it depends from memory pc.

Bye Denis


Bob Phillips ha scritto:

What do you mean by ... after n sheets it crashes?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
ups.com...
Hi,
how can I control the limit of Excel?
I mean... Excel has the limit about sheets dipending from memory of
the pc.
Is there a way to stop it before it crashes??
I have a macro which generate lots of sheets with charts but after "n"
sheets it crashes.... I would like to know how I can intercept this
behaviour?

Thanks in advance

Bye Denis


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Limits of Excel

Save the workbook every so many sheets to clear the memory.
something like:
If Sheets.Count Mod 20 = 0 then ThisWorkbook.save
would save after every 20 sheets.
Untested
Mike F
wrote in message
ups.com...
Hi,
how can I control the limit of Excel?
I mean... Excel has the limit about sheets dipending from memory of
the pc.
Is there a way to stop it before it crashes??
I have a macro which generate lots of sheets with charts but after "n"
sheets it crashes.... I would like to know how I can intercept this
behaviour?

Thanks in advance

Bye Denis



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Limits of Excel

If this is the same error that occurs when copying lots of worksheets without
closing the workbook, the only thing that has solved the problem for me is a
save and full close of the workbook. Lucky for me, I ran into the problem in
a situation where two workbooks would always be open so I used OnTime to
save/close/reopen first one then the other.
If you haven't already seen this, here's the link to the MS report about the
sheet copy bug: http://support.microsoft.com/kb/210684

--
n00b lookn for a handout :)


" wrote:

Hi,
how can I control the limit of Excel?
I mean... Excel has the limit about sheets dipending from memory of
the pc.
Is there a way to stop it before it crashes??
I have a macro which generate lots of sheets with charts but after "n"
sheets it crashes.... I would like to know how I can intercept this
behaviour?

Thanks in advance

Bye Denis


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
OLE Limits on Excel 2003 ?? Pete Phillips Excel Discussion (Misc queries) 1 December 1st 08 06:57 PM
Excel Ranking Pre-Set Limits spkpnight Excel Discussion (Misc queries) 1 February 26th 06 01:08 AM
Clipboard Limits in Excel? MikeT Excel Programming 2 February 17th 06 09:41 PM
Limits of excel adriaSTEFANIE Excel Discussion (Misc queries) 4 April 25th 05 01:09 PM
Excel Tab limits Iggy Excel Discussion (Misc queries) 1 March 22nd 05 09:04 PM


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