Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Excel
123quattro
charting
crashesgpfs
datamap
excel
interopoledde
links
misc
newusers
printing
programming
querydao
sdk
setup
templates
worksheet.functions
  
 
date: Wed, 12 Mar 2008 23:51:00 -0700,    group: microsoft.public.excel.interopoledde        back       


ActiveCell.Dependents kills code   
I have been trying to get a .net application to use the .Dependents property 
of the activecell.  It works perfectly if there are dependents however if the 
cell has no dependents then the code stops executing - no errors, no way to 
catch etc.

I have tried with VB and C#.  I also tried the same thing in VBA and get a 
run time error 1004 - Application-defined or object-defined error.

The issue is that there doesn't seem to be a way to find out if a cell has 
dependents.


C# code             Excel.Range r = this.Application.ActiveCell.Dependents;
VB Code             If (Me.Application.ActiveCell.Dependents IsNot Nothing) 
Then

Any ideas on how I can get past this error or if there is another way to 
find out if a cell has dependents before calling this property.

Thanks


Duncan
date: Wed, 12 Mar 2008 23:51:00 -0700   author:   Duncan Ritchie Duncan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us