LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
J J is offline
external usenet poster
 
Posts: 1
Default Unhandled Exception Error

I keep getting a strange error when I try loop through excel's cells and find one with cotaining no data. I get an unhandled exception of type 'System.Runtime.InteropServices.COMexception'.... Exception from HRESULT: 0x800A03EC. My code is as follows

D
I +=
If mExcel.Range("A5").Text = " " The
....do somethin
Loop While MyExcel.Range(strBoth).Value < "

The if statement is the line causing the error. I've tried multiple vartions of the loop. I've refrenced the COM microsoft excel 10.0 and am running Office XP pro. I also included Imports Microsoft.Office.Core. Thanks for any help. Any useful links/examples would also be greatly appreciated.

PS I've mananged to make it through the if statmet a few times but I 've also been getting various cast exception errors regarding mscorlib.dll.
 
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
Unhandled exception - Not implemented Aggie Excel Worksheet Functions 0 May 31st 07 06:23 PM
WHAT ARE THE CAUSES FOR 'EXCEPTION ERROR ' CAPTGNVR Excel Discussion (Misc queries) 0 January 29th 07 06:04 PM
Excel.Range.Name gives error an exception [email protected] Excel Discussion (Misc queries) 2 August 23rd 05 08:14 AM
Remind me to set Error Trapping to Break on Unhandled Errors don Excel Programming 0 November 5th 03 06:06 PM
Exception Error? What is it? Tom Ogilvy Excel Programming 3 August 13th 03 05:57 AM


All times are GMT +1. The time now is 10:18 AM.

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

About Us

"It's about Microsoft Excel"