PC Review


Reply
Thread Tools Rate Thread

Application.Calculate - Runtime Error

 
 
PCLIVE
Guest
Posts: n/a
 
      2nd Jun 2008
Does anyone know why the following line might cause a Runtime Error?

Application.Calculate

I understand that the surrounding code may be suspected to be involved, but
running the same Macro twice will not necessarilly have a problem.
Additionally, this has occurred in other Sub routines on the same code. The
runtime error pops up, I go to Debug and that line is highlighted. If I hit
F8, it runs that line with no problem....or if I hit F5, it continues
running.

Any ideas?

Thanks,
Paul

--



 
Reply With Quote
 
 
 
 
PCLIVE
Guest
Posts: n/a
 
      2nd Jun 2008
Doesn't anyone know of a circumstance in which the line
"Application.Calculate" might cause a Runtime Error?

The exact error is:

____________________________________________
Run-time error '1004':

Cannot run Visual Basic macro because of a syntax error.
____________________________________________

I am able to 'Debug' and the Calculate line is what is highlighted. I can
continue step by step (F8) or I can continue fully (F5). In one case I have
a looping sequence and it errors every time on this line. But it will
always continue if I tell it to using F5 or F8. In this particular looping
sequence, it happens over and over for as many times as it loops. It's
frustrating. It also happens on different computers using the same file(s).
Excel 2002.

Thanks for any ideas.
Paul


--

"PCLIVE" <pclive(RemoveThis)@cox.net> wrote in message
news:u%(E-Mail Removed)...
> Does anyone know why the following line might cause a Runtime Error?
>
> Application.Calculate
>
> I understand that the surrounding code may be suspected to be involved,
> but
> running the same Macro twice will not necessarilly have a problem.
> Additionally, this has occurred in other Sub routines on the same code.
> The
> runtime error pops up, I go to Debug and that line is highlighted. If I
> hit
> F8, it runs that line with no problem....or if I hit F5, it continues
> running.
>
> Any ideas?
>
> Thanks,
> Paul
>
> --
>
>
>



 
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
runtime error '1004' application or object defined error =?Utf-8?B?SmFuaXM=?= Microsoft Excel Programming 4 18th Nov 2009 03:01 PM
runtime error '1004' application or object defined error. Please help deej Microsoft Excel Programming 0 1st Aug 2007 09:26 AM
runtime error 216 at 01B56682;Application error; runtime er... Gunnar Hemström Windows XP Internet Explorer 1 5th Feb 2004 04:39 PM
runtime error! This application has requested that runtime terminate.... sunlion Windows XP Internet Explorer 3 14th Dec 2003 10:30 PM
Re: Runtime error This application has requested the runtime to terminate siljaline Windows XP Internet Explorer 0 20th Sep 2003 01:58 AM


Features
 

Advertising
 

Newsgroups
 


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