Run-time error '50003': Unexpected error 
Author Message
 Run-time error '50003': Unexpected error

Hello,
          I have this error, which happens only in Vista.
It happens just at the start of Form_Load routine.
My program is using Excel automation, and I traced the problem is related to
Excel version installed on target computer.
I developed and compiled executable in Excel 2007 environment, but on Vista
there is Excel 2003 installed.
1.
Why the error happens only in Vista?
I have tested executable in WinXP running the same Excel 2003 and there is
not any error.
2.
What else can I do to prevent that problem, besides recompiling exec in
Excel 2003 environment?
Your comments appreciated,
Jack


Thu, 08 Sep 2011 00:33:42 GMT  
 Run-time error '50003': Unexpected error

Quote:

> Hello,
>          I have this error, which happens only in Vista.
> It happens just at the start of Form_Load routine.
> My program is using Excel automation, and I traced the problem is related to Excel version installed on
> target computer.
> I developed and compiled executable in Excel 2007 environment, but on Vista there is Excel 2003 installed.
> 1.
> Why the error happens only in Vista?
> I have tested executable in WinXP running the same Excel 2003 and there is not any error.
> 2.
> What else can I do to prevent that problem, besides recompiling exec in Excel 2003 environment?
> Your comments appreciated,
> Jack

If the development machine has both 2007 and 2003 installed,
set a reference to Microsoft Excel 11.0 object library instead of the Microsoft Excel 12.0 object library
and recompile.

Vista with 2003 has no clue what the Microsoft Excel 12.0 object library is,
hence the error

--

Steve Easton



Thu, 08 Sep 2011 05:49:14 GMT  
 Run-time error '50003': Unexpected error
No, it wont!
The code is NOT executed yet when the error strikes.
Jack

Quote:
> It would help if you post your code.


>> Hello,
>>           I have this error, which happens only in Vista.
>> It happens just at the start of Form_Load routine.
>> My program is using Excel automation, and I traced the problem is related
>> to
>> Excel version installed on target computer.
>> I developed and compiled executable in Excel 2007 environment, but on
>> Vista
>> there is Excel 2003 installed.
>> 1.
>> Why the error happens only in Vista?
>> I have tested executable in WinXP running the same Excel 2003 and there
>> is
>> not any error.
>> 2.
>> What else can I do to prevent that problem, besides recompiling exec in
>> Excel 2003 environment?
>> Your comments appreciated,
>> Jack



Thu, 08 Sep 2011 07:48:58 GMT  
 Run-time error '50003': Unexpected error


Quote:



>> Hello,
>>          I have this error, which happens only in Vista.
>> It happens just at the start of Form_Load routine.
>> My program is using Excel automation, and I traced the problem is related
>> to Excel version installed on target computer.
>> I developed and compiled executable in Excel 2007 environment, but on
>> Vista there is Excel 2003 installed.
>> 1.
>> Why the error happens only in Vista?
>> I have tested executable in WinXP running the same Excel 2003 and there
>> is not any error.
>> 2.
>> What else can I do to prevent that problem, besides recompiling exec in
>> Excel 2003 environment?
>> Your comments appreciated,
>> Jack

> If the development machine has both 2007 and 2003 installed,
> set a reference to Microsoft Excel 11.0 object library instead of the
> Microsoft Excel 12.0 object library
> and recompile.

> Vista with 2003 has no clue what the Microsoft Excel 12.0 object library
> is,
> hence the error

> --

> Steve Easton

Thank you, Steve.
Jack


Thu, 08 Sep 2011 07:49:40 GMT  
 Run-time error '50003': Unexpected error
Why are you such as ass?

YOU'RE the one asking for help. If anybody asks YOU a question or requests
additional information in order to help YOU, just answer and don't be a
friggin' moron!

--
Mike


Quote:
> No, it wont!
> The code is NOT executed yet when the error strikes.
> Jack


>> It would help if you post your code.



Thu, 08 Sep 2011 23:42:58 GMT  
 Run-time error '50003': Unexpected error


| Why are you such as ass?

The same could be asked of you as of late.



Fri, 09 Sep 2011 01:19:07 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Run-time error '50003' Unexpected Error

2. Run-time error '50003'

3. Unexpected Error '50003'

4. 50003 'unexpected Error'

5. Unexpected Error '50003'

6. Unexpected error (runtime error 50003)

7. Runtime error '50003'

8. Runtime error '50003'

9. Run-time error '-2147417846 (8001010a)': Automation error (error 440)

10. Run-time error '-2147417846 (8001010a)': Automation error (error 440)

11. 50003 Unexpected error, totaly unexpected, but why?

12. HELP! RUNTIME ERROR '50003' UNEXPECTED ERROR

 

 
Powered by phpBB® Forum Software