Runtime Error 1004

karraj

Board Regular
Joined
Mar 5, 2002
Messages
76
I get this error, once a while running my VBA code.
"Run Time error 1004 Method'displaystatusbar ' of object '_Application' failed.

If try to comment this line out, I get the error occurs in the next line...

"Run Time error 1004 Method 'Calculation' of object '_Application' failed.

The subroutine this error occurs is the one I am using to create a new workbook.

If i close my workbook and then open again, I do not see this error.

Any help would be great.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Found the solution, for someone faced with this error in future....

A Bug with EXcel 97 , just select a worksheet and a range on it , before calling the calculation method.

K
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,090
Members
449,065
Latest member
Danger_SF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top