Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default VBA command has stopped functioning

Hi folks,

In some of my v.large workbooks I use a macro to recalculate data fields
from weekly data dumps. The size of the workbooks mean that these cannot be
'live' calculations. So I am using the code to put the formulas in, calculate
the answer and then convert to numbers before moving onto the next data block.

I have been using the very useful 'Selection.Calculate' code to isolate and
calculate the updated the cells in this process and thereby NOT have to
recalculate the entire workbook before converting the selection to hard
numbers.

Over the last couple of weeks I have started running into problems with the
'Selection.Calculate' code.
In previously trouble free workbooks I am now getting debug errors with the
message "Runtime error 1004. Calculate method of range class failed".

Sometimes it can be cured by closing Excel and starting anew but not always.

Does anyone have any ideas what may be happening and any potential solutions?

Cheers Giz
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default VBA command has stopped functioning

Some possibilities:

http://support.microsoft.com/kb/825011/

http://support.microsoft.com/kb/292476/

--
Jim
"Gizmo63" wrote in message
...
| Hi folks,
|
| In some of my v.large workbooks I use a macro to recalculate data fields
| from weekly data dumps. The size of the workbooks mean that these cannot
be
| 'live' calculations. So I am using the code to put the formulas in,
calculate
| the answer and then convert to numbers before moving onto the next data
block.
|
| I have been using the very useful 'Selection.Calculate' code to isolate
and
| calculate the updated the cells in this process and thereby NOT have to
| recalculate the entire workbook before converting the selection to hard
| numbers.
|
| Over the last couple of weeks I have started running into problems with
the
| 'Selection.Calculate' code.
| In previously trouble free workbooks I am now getting debug errors with
the
| message "Runtime error 1004. Calculate method of range class failed".
|
| Sometimes it can be cured by closing Excel and starting anew but not
always.
|
| Does anyone have any ideas what may be happening and any potential
solutions?
|
| Cheers Giz


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default VBA command has stopped functioning

Sometimes in large workbooks when there is continuous calculations, the
memory gets stressed out. Try building a periodic "Save" into your program
to release some of the memory and see if that makes the problem go away.

"Gizmo63" wrote:

Hi folks,

In some of my v.large workbooks I use a macro to recalculate data fields
from weekly data dumps. The size of the workbooks mean that these cannot be
'live' calculations. So I am using the code to put the formulas in, calculate
the answer and then convert to numbers before moving onto the next data block.

I have been using the very useful 'Selection.Calculate' code to isolate and
calculate the updated the cells in this process and thereby NOT have to
recalculate the entire workbook before converting the selection to hard
numbers.

Over the last couple of weeks I have started running into problems with the
'Selection.Calculate' code.
In previously trouble free workbooks I am now getting debug errors with the
message "Runtime error 1004. Calculate method of range class failed".

Sometimes it can be cured by closing Excel and starting anew but not always.

Does anyone have any ideas what may be happening and any potential solutions?

Cheers Giz

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
Copy/Paste from WB to WB stopped functioning BIGJAY Excel Discussion (Misc queries) 3 May 14th 09 06:25 PM
My command button has stopped functioning E. Marsh Excel Programming 4 September 19th 05 09:12 PM
It formulated, but it's not functioning Norli Excel Discussion (Misc queries) 2 June 22nd 05 01:43 PM
Function Mal-Functioning Jay Excel Worksheet Functions 5 April 21st 05 04:00 PM
Shell command stopped working: is it part of Excel 95 , or Windows? Charles Jordan Excel Programming 9 May 4th 04 06:39 AM


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