Home All Groups Group Topic Archive Search About

Run-time error '50003': Unexpected error

Author
21 Mar 2009 4:33 PM
Jack
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

Author
21 Mar 2009 7:30 PM
Barb Reinhardt
It would help if you post your code.

Show quoteHide quote
"Jack" wrote:

> 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
>
>
>
Author
21 Mar 2009 11:48 PM
Jack
No, it wont!
The code is NOT executed yet when the error strikes.
Jack
Show quoteHide quote
"Barb Reinhardt" <BarbReinha***@discussions.microsoft.com> wrote in message
news:84A02308-7820-421B-96AF-E8B72D49FDA5@microsoft.com...
> It would help if you post your code.
>
> "Jack" wrote:
>
>> 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
>>
>>
>>
Author
22 Mar 2009 3:42 PM
MikeD
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


Show quoteHide quote
"Jack" <Jack@nowhere> wrote in message
news:utD9d%23nqJHA.3432@TK2MSFTNGP04.phx.gbl...
> No, it wont!
> The code is NOT executed yet when the error strikes.
> Jack
> "Barb Reinhardt" <BarbReinha***@discussions.microsoft.com> wrote in
> message news:84A02308-7820-421B-96AF-E8B72D49FDA5@microsoft.com...
>> It would help if you post your code.
>>
Author
22 Mar 2009 5:19 PM
Kevin Provance
"MikeD" <nob***@nowhere.edu> wrote in message
news:uWMshTwqJHA.5452@TK2MSFTNGP02.phx.gbl...
| Why are you such as ass?

The same could be asked of you as of late.
Author
21 Mar 2009 9:49 PM
Steve Easton
Show quote Hide quote
"Jack" <Jack@nowhere> wrote in message news:%239BrPLkqJHA.1504@TK2MSFTNGP03.phx.gbl...
> 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
Author
21 Mar 2009 11:49 PM
Jack
Show quote Hide quote
"Steve Easton" <ad***@95isalive.com> wrote in message
news:uQVji7mqJHA.3992@TK2MSFTNGP04.phx.gbl...
>
> "Jack" <Jack@nowhere> wrote in message
> news:%239BrPLkqJHA.1504@TK2MSFTNGP03.phx.gbl...
>> 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