LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default HELP: Excel Interop objects and checking for nulls?

hi
I've been having this trouble for a long time:

Is there any way I can check if a reference to a range object no longer
exists?

Eg, After creating a reference to a range:

Range refRange = Application.ActiveCell;

I delete the cell (eg, via removing an entire row/column), yet the refRange
object still points to the deleted range object. When I try to use it, I get
an exception.

This problem persists with any type of Excel Interop objects (Name, Names,
Range, etc).

Was wondering if anyone know if I can check if an Excel Interop object is
usable? Eg, checking if it's null or not.

Thanks
 
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
Interop Excel thejamie Excel Programming 2 March 24th 08 11:41 AM
Excel VBA Class Objects - Parent & Successor Objects [email protected] Excel Programming 1 January 15th 07 12:06 AM
Using Excel, how do I replace cells containing blanks with nulls? Nither1 Excel Discussion (Misc queries) 2 May 9th 05 10:32 PM
How do I sort nulls within date field in Excel Petra[_2_] Excel Programming 2 April 26th 05 03:04 AM
Unable to remove Sheet objects in the Microsoft Excel Objects Adrian[_7_] Excel Programming 1 August 26th 04 10:49 PM


All times are GMT +1. The time now is 10:32 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"