Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default getting System.Runtime.InteropServices.COMException

My application is an addin to Excel, and during each operation (like drag
drop a string from external source to a cell in Excel)we do
ExcelApplicationObject.Undo() and then try to get Excel cell value and store
that previous cell value in cache for later use - but at one instance (like
when we hold "Shift" key and drag drop a normal string to a excel cell) we
are seeing "Exception from HRESULT: 0x800A01A8" exception and I dont see any
wrong in my code. Please help me why I am seeing this error.

Below is the code snippet...

oldValue = string.Empty;
newValue = string.Empty;
Excel1.Range currentRange = r;
if (r.Cells.Value2 != null)
{
newValue = Utility.GetCellValue (r) ;
}

m_app.Undo();

if (r.Cells.Value2 != null) // getting exception at this point, and r is
not null.
{
oldValue = Utility.GetCellValue (r);
}

r = currentRange;


--
Aruna
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i prevent the COMException 0x80010108 and 0x80010105? Nilavu Charts and Charting in Excel 1 May 27th 09 03:46 AM
System.Runtime.InteropServices.COMException (0x800A03EC) mina[_2_] Excel Programming 0 December 13th 06 09:51 AM
System.Runtime.InteropServices.COMException (0x80020005) in excel 2k7, but worked well in 2k3 dotNeter Excel Programming 0 November 15th 06 07:15 AM
I get COMException while exporting chart on IIS 6.0. asp newbie Charts and Charting in Excel 1 May 16th 06 08:27 AM
Excel SaveCopyAs COMException 0x800A03EC Jim McLeod Excel Programming 0 May 25th 04 12:26 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"