Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Run-time error '1004' at "Application.Calculate"

I started getting this error a little while back.

Run-time error '1004':
Cannot run Visual Basic macro because of a syntax error.

This macro is activated by a button on my worksheet.
The first time I press it, I get the error. However, the first error does
not allow me to click "Debug".
I press the button again and the error comes up again. This time I can
click "Debug" which highlights "Application.Calculate".
I can continue running the macro code by pressing the triangle or play
button...or I can close the VB editor and click the button that calls the
macro. In either case, the macro runs through without error.

Any ideas why this error occurs at "Application.Calculate"?

Thanks,
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Run-time error '1004' at "Application.Calculate"

Hi, please post the buggy code snippet.

"PCLIVE" wrote:

I started getting this error a little while back.

Run-time error '1004':
Cannot run Visual Basic macro because of a syntax error.

This macro is activated by a button on my worksheet.
The first time I press it, I get the error. However, the first error does
not allow me to click "Debug".
I press the button again and the error comes up again. This time I can
click "Debug" which highlights "Application.Calculate".
I can continue running the macro code by pressing the triangle or play
button...or I can close the VB editor and click the button that calls the
macro. In either case, the macro runs through without error.

Any ideas why this error occurs at "Application.Calculate"?

Thanks,
Paul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Run-time error '1004' at "Application.Calculate"

I'm not sure how much this will help, but this is it from the beginning to
where it stops.


With ThisWorkbook.VBProject.VBComponents("ThisWorkbook" ).CodeModule
.DeleteLines 1, .CountOfLines
End With
''''''''''''''Above code is successful

If Range("T10") = "False" Then Application.ScreenUpdating = False

NoAction:
Application.Calculate
'''''''''This last line (above) is what is highlighted





"Madhan" wrote in message
...
Hi, please post the buggy code snippet.

"PCLIVE" wrote:

I started getting this error a little while back.

Run-time error '1004':
Cannot run Visual Basic macro because of a syntax error.

This macro is activated by a button on my worksheet.
The first time I press it, I get the error. However, the first error
does
not allow me to click "Debug".
I press the button again and the error comes up again. This time I can
click "Debug" which highlights "Application.Calculate".
I can continue running the macro code by pressing the triangle or play
button...or I can close the VB editor and click the button that calls the
macro. In either case, the macro runs through without error.

Any ideas why this error occurs at "Application.Calculate"?

Thanks,
Paul





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
Run-time error "1004" Select method of range class failed Tallan Excel Discussion (Misc queries) 3 March 7th 07 05:22 PM
Run time error 1004: "No list was found.." hachiroku[_5_] Excel Programming 1 May 22nd 06 12:53 PM
1004 "Application-defined or object-defined error" guiu Excel Programming 6 January 12th 06 02:43 PM
"Run Time Error 1004 Application Defined or Object Defined Error." BJC Excel Programming 4 October 26th 03 03:09 AM
"Run-time error '1004'" Method 'Range' of object '_global' failed. haisat[_2_] Excel Programming 0 October 20th 03 12:13 PM


All times are GMT +1. The time now is 03:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"