Bizzare Excel Interop Behavior

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



We have an Excel Automation Add-In that works fine for many of us. We
just installed at a client site and we are seeing very odd behavior
there. As an example, we have a wizard which outputs a formula into
the cell. When the wizard completes, only part of the formula is
making it into the cell - for example, we have Range.Formula =
"=MyFormula(1+2)" and what shows up in Excel is "=MyFormula" There
are other seemingly random exceptions thrown as well, such as
sometimes when we access Range.Value2, an exception is thrown. All of
this works fine on many other machines with the same version of Excel,
the same version of the .NET Framework and the same Interops. The
case with the formula rendering is really odd since it's breaking in
the middle of sending the data - half of the string got set for the
formula and then it just stops. Can anyone suggest what might be
going on in their environment, or some way to debug it? The debugger
is of no help since the problems are occurring after control leaves
the .NET code and before it completes in Excel.

.



Relevant Pages

  • Save As and password issues
    ... I am running in to an odd behavior when saving as. ... Excel 2003 completely updated as of 04-16-08. ... It is in a domain / office environment. ...
    (microsoft.public.excel.misc)
  • RE: Excel Interop > ActiveX>SEcurity exception
    ... It is all down to the .NET Framework security policy for the user and the MS ... Office Excel .NET Project. ... "Graeme" wrote: ...
    (microsoft.public.excel.programming)
  • Managed COM
    ... I am coming from a VB6 background. ... read about PIA's and their role in "managed code" as it pertains to COM ... I want to see all instances of Excel which are currently running. ... "managed code" as defined by the .NET framework? ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Access 12 and .NET
    ... Visual Studio 2005 is gonna be a beast LOL. ... Since Office 2003 the .NET architecture is implemented for Excel and Word ... api dlls is not necessary anymore with the .net framework at hand. ... Basically MS's goal is to abstract the WIN apis for developers by making ...
    (microsoft.public.access.modulesdaovba)
  • Re: Trigger a macro inside an excel sheet from c# code
    ... You say there is no automation build into the .NET Framework, ... I also read an article of someone who accessed excel with the .net ... I would simply like to access an excel sheet and run macros on it from ...
    (microsoft.public.dotnet.languages.csharp)