ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   excel applicaton closes showing complietime error not allowing to edit (https://www.excelbanter.com/excel-programming/365749-excel-applicaton-closes-showing-complietime-error-not-allowing-edit.html)

divya sanam

excel applicaton closes showing complietime error not allowing to edit
 


I've got an excel application which on opening shows an message box
compiletime error 1004:application or object defined error when I click
ok the whole application is closed not allowing me to view the vba code
..It also closes other workbooks which are open .kindly suggest a soln.

*** Sent via Developersdex http://www.developersdex.com ***

MaC

excel applicaton closes showing complietime error not allowing to edit
 
It can be caused by some special error interception expression, which works
just as you say - closing workbook if there is some error during workbook
loading.
I suggest to open application turning off macro and then check if there is
any special error section in Workbook_open() procedure.
Put comment character before lines of error section, then save and close
application. Open application again and try to see if debugger shows
incorrect part of code making problems.

Regards
Mario

Uzytkownik "divya sanam" napisal w wiadomosci
...


I've got an excel application which on opening shows an message box
compiletime error 1004:application or object defined error when I click
ok the whole application is closed not allowing me to view the vba code
.It also closes other workbooks which are open .kindly suggest a soln.

*** Sent via Developersdex http://www.developersdex.com ***





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com