PC Review


Reply
Thread Tools Rate Thread

Application.Calculation = -4105 behaving strangely

 
 
Brett
Guest
Posts: n/a
 
      13th May 2009
Hi there, I have a set of macros that run and then I need to turn calc back
on. This all worked fine until I introduced a UserForm (that I use to control
the flow of the work and for monitoring). Now, whenever I execute
Application.Calculation = -4105
either by a code line or into the immediate window Excel hangs for anything
up to 3 or 4 minutes (the status bar says "Calculating Cells 100%) and then
the hourglass comes up and Excel is completely frozen. From there the only
way out is to crash it through the Task Manager.

BTW, the UserForm is brought up with Show 0 so that it's modal.

Oddly enough, sometimes it just requires me to activate the Task Manager,
and I can then go back to the spreadsheet and continue working.

Even more odd is that in the immediate window I can either calculate a sheet
or just do Calculate and it only takes a moment (as you would expect).

What can cause this behaviour (anything to do with UserForms?) and how can I
solve it please? Regards, Brett.
 
Reply With Quote
 
 
 
 
joel
Guest
Posts: n/a
 
      13th May 2009
Are you using VISTA and HOW much memory is installed????????

The program is probably saving a backup of the file in the TEMP folder.
Part of the process of saving the file requires storing the data into memory.
If you don't have a lot of memory on your PC the computer starts performing
SWAPS of memory storing blocks of memory on your hard drive to free up
memory. The swapping to the hard drive is a very slow process. VISTA
requires lots of memory and when you have a large application running (excel
with lots of data) there is a conflict with the memory. Operating systems
like Windows/Vista must free up memory and the process is to store unused
blocks of data in memory to a temp area on the harddrive. The access to the
harddive is much slower the reads/writes to memory.

"Brett" wrote:

> Hi there, I have a set of macros that run and then I need to turn calc back
> on. This all worked fine until I introduced a UserForm (that I use to control
> the flow of the work and for monitoring). Now, whenever I execute
> Application.Calculation = -4105
> either by a code line or into the immediate window Excel hangs for anything
> up to 3 or 4 minutes (the status bar says "Calculating Cells 100%) and then
> the hourglass comes up and Excel is completely frozen. From there the only
> way out is to crash it through the Task Manager.
>
> BTW, the UserForm is brought up with Show 0 so that it's modal.
>
> Oddly enough, sometimes it just requires me to activate the Task Manager,
> and I can then go back to the spreadsheet and continue working.
>
> Even more odd is that in the immediate window I can either calculate a sheet
> or just do Calculate and it only takes a moment (as you would expect).
>
> What can cause this behaviour (anything to do with UserForms?) and how can I
> solve it please? Regards, Brett.

 
Reply With Quote
 
Brett
Guest
Posts: n/a
 
      13th May 2009
Hi joel, thanks for reply : XP 2003 and from memory(?) 4GB of ram so I'm
thinking that that is not the problem(?). Regards, Brett

"Brett" wrote:

> Hi there, I have a set of macros that run and then I need to turn calc back
> on. This all worked fine until I introduced a UserForm (that I use to control
> the flow of the work and for monitoring). Now, whenever I execute
> Application.Calculation = -4105
> either by a code line or into the immediate window Excel hangs for anything
> up to 3 or 4 minutes (the status bar says "Calculating Cells 100%) and then
> the hourglass comes up and Excel is completely frozen. From there the only
> way out is to crash it through the Task Manager.
>
> BTW, the UserForm is brought up with Show 0 so that it's modal.
>
> Oddly enough, sometimes it just requires me to activate the Task Manager,
> and I can then go back to the spreadsheet and continue working.
>
> Even more odd is that in the immediate window I can either calculate a sheet
> or just do Calculate and it only takes a moment (as you would expect).
>
> What can cause this behaviour (anything to do with UserForms?) and how can I
> solve it please? Regards, Brett.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE6 behaving strangely jon Windows XP Internet Explorer 2 16th Oct 2008 11:23 AM
Document Behaving Strangely Ross Payne Microsoft Word New Users 3 22nd Mar 2007 08:26 AM
Computer behaving strangely since... clifffreeling@yahoo.com Windows XP Customization 5 20th Oct 2005 04:17 PM
Stateserver behaving strangely =?iso-8859-1?q?Nils Hedstr=f6m Microsoft ASP .NET 0 11th Feb 2005 10:04 AM
OnMouseUp behaving strangely Aaron Queenan Microsoft C# .NET 2 12th Jan 2004 06:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:43 AM.