Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Sat, 5 Apr 2008 07:58:00 -0700,    group: microsoft.public.visio.developer.shapesheet        back       


determine presence/absence of data graphic   
Is there a way to determine from the shapesheet whether a data graphic has 
been applied to a shape?

Specifically, I'm trying to determine whether a color by value DG has been 
applied. I know that color by value creates Uesr.visDGCBVFill and then 
deletes it when you remove the DG. It would be logical to test for existence 
of that cell, but there is no CELLEXISTS() function in the shapesheet. I 
tried using FORUMULAEXISTS(User.visDGCBVFill) but as soon as I remove the DG, 
this becomes FORMULAEXISTS(REF()).

I also tried a forumula David Parker posted a year ago in response to a 
similar question:
=1+ABS(NOT(ISERR(INT(INDEX(0,"User.visDGCBFill")))))
but this always returns a value of 1.

Other suggestions?
date: Sat, 5 Apr 2008 07:58:00 -0700   author:   Scott

RE: determine presence/absence of data graphic   
Hi, Scott.

If the shape has DataGraphics, 
shapesheet has User.visDGDisplayFormat cell.
-- 
JuneTheSecond  

Now, visual calculation is more visual.
http://www.geocities.jp/visualcalculation/english/index.html
date: Sat, 5 Apr 2008 23:09:00 -0700   author:   JuneTheSecond

RE: determine presence/absence of data graphic   
> If the shape has DataGraphics, 
> shapesheet has User.visDGDisplayFormat cell.

Even so the problem still remains: there is no cellexists() function in the 
shapesheet. So how do I determine from the shapesheet whether a particular 
cell exists?
date: Mon, 7 Apr 2008 09:46:00 -0700   author:   Scott

RE: determine presence/absence of data graphic   
I think there is noway in shapesheet.
-- 
JuneTheSecond  

Now, visual calculation is more visual.
http://www.geocities.jp/visualcalculation/english/index.html
date: Mon, 7 Apr 2008 16:49:01 -0700   author:   JuneTheSecond

Re: determine presence/absence of data graphic   
Actually, this will do it (it should return 1 or 0):
=DEPENDSON(NOW())+NOT(ISERR(INT(INDEX(0,"User.visDGDisplayFormat"))))

I tried to do it without DEPENDSON()NOW()) at first, but adding/removing did 
not force re-evaluation

"JuneTheSecond"  wrote in message 
news:09079C58-7DF4-403C-9BAF-C529173B9257@microsoft.com...
>I think there is noway in shapesheet.
> -- 
> JuneTheSecond
>
> Now, visual calculation is more visual.
> http://www.geocities.jp/visualcalculation/english/index.html
>

-- 
David Parker
Microsoft MVP (Visio)
http://bvisual.spaces.live.com
http://www.visualizinginformation.com
date: Tue, 8 Apr 2008 22:19:54 +0100   author:   David Parker

Re: determine presence/absence of data graphic   
Excelent! David, you really are!
-- 
JuneTheSecond  

Now, visual calculation is more visual.
http://www.geocities.jp/visualcalculation/english/index.html
date: Tue, 8 Apr 2008 16:39:00 -0700   author:   JuneTheSecond

Re: determine presence/absence of data graphic   
However, I do not recommend using NOW() too often becaue it continuously 
fires.  It would be better to point DEPENDSON() at some cell whose value you 
know is likely to change.

"JuneTheSecond"  wrote in message 
news:E2599FE7-A7E8-470E-91C7-34CA3E8D0723@microsoft.com...
> Excelent! David, you really are!
> -- 
> JuneTheSecond
>
> Now, visual calculation is more visual.
> http://www.geocities.jp/visualcalculation/english/index.html
>

-- 
David Parker
Microsoft MVP (Visio)
http://bvisual.spaces.live.com
http://www.visualizinginformation.com
date: Wed, 9 Apr 2008 07:30:35 +0100   author:   David Parker

Google
 
Web ureader.com


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