Program stops (creating pivot table) when too many records

C

ch

Hi all,

I have a macro which creates a Pivot Table using the records I provide and
it works fine up to probably 40,000 records.

When the database becomes too big, the program stops at the line of code
which creates the Pivot Table with an error message.
1) Pressing F5 simply gives the same error message.
2) Running the same macro from start with a reduced records works well again.

How can I overcome this problem?

Thanks in advance.
 
D

dk

Hi all,

I have a macro which creates a Pivot Table using the records I provide and
it works fine up to probably 40,000 records.  

When the database becomes too big, the program stops at the line of code
which creates the Pivot Table with an error message.
1) Pressing F5 simply gives the same error message.
2) Running the same macro from start with a reduced records works well again.

How can I overcome this problem?  

Thanks in advance.

Are the variables declared have sufficient range?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top