Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
When ever I open my excel file I get a error message when I press one of the commandButtons. Run Time Error'-2147352573 (80020003)': Could not find the specified object. Any ideas???? -- AOU |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It look like you have a macro in your code. Because there is an On Error
statement(s) in the code it not giving you any clue to where the problem is. I hate On Error statements just for this reason. The best solution is to comment the On Error statement by place a singgle Apostrophe in fron of the statement so you can find the problem Make a copy of the Workbook and make these changes in the copy. following these steps. 1) Go to VBA window. Easiestway is to right click on tb at bottom of the worksheet (normally sheet1) and select view code. 2) Open Project Explorer by View Menu in VBA. 3) Look for all macros Double n each sheet in the Project Explorer Open Module(+) and check for macros in modules 4) Find all On Error statements and place single Apostrophe at the beginning of the line 5) Go ack to your spreadsheet and execute the Command Button. It should now stop on the instruction that is causing the problem and highlight the VBA line (in yellow) where the problem is located. If you can't figure the problem out yourself, copy the macro to this website and post on the Excel Programming Page. Or you can respond to this postingwill look at the problem. "AOU" wrote: Hi, When ever I open my excel file I get a error message when I press one of the commandButtons. Run Time Error'-2147352573 (80020003)': Could not find the specified object. Any ideas???? -- AOU |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Joel,
Luckly it was the first one I tried. -- AOU "Joel" wrote: It look like you have a macro in your code. Because there is an On Error statement(s) in the code it not giving you any clue to where the problem is. I hate On Error statements just for this reason. The best solution is to comment the On Error statement by place a singgle Apostrophe in fron of the statement so you can find the problem Make a copy of the Workbook and make these changes in the copy. following these steps. 1) Go to VBA window. Easiestway is to right click on tb at bottom of the worksheet (normally sheet1) and select view code. 2) Open Project Explorer by View Menu in VBA. 3) Look for all macros Double n each sheet in the Project Explorer Open Module(+) and check for macros in modules 4) Find all On Error statements and place single Apostrophe at the beginning of the line 5) Go ack to your spreadsheet and execute the Command Button. It should now stop on the instruction that is causing the problem and highlight the VBA line (in yellow) where the problem is located. If you can't figure the problem out yourself, copy the macro to this website and post on the Excel Programming Page. Or you can respond to this postingwill look at the problem. "AOU" wrote: Hi, When ever I open my excel file I get a error message when I press one of the commandButtons. Run Time Error'-2147352573 (80020003)': Could not find the specified object. Any ideas???? -- AOU |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Receiving run-time error only part of the time | Excel Discussion (Misc queries) | |||
Run time error | Excel Worksheet Functions | |||
run-time error '91'-Close Button error | Excel Discussion (Misc queries) | |||
Help Error Run-time Error 424 | Excel Discussion (Misc queries) | |||
Run time error 1004, General ODBC error | New Users to Excel |