Author Topic: Conditional Formatting Visio 2007  (Read 22997 times)

0 Members and 1 Guest are viewing this topic.

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1737
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Conditional Formatting Visio 2007
« Reply #15 on: July 29, 2008, 07:18:48 PM »
Ah, a proper pint for Paul!

And for me, it's a bier :)
« Last Edit: July 29, 2008, 07:25:13 PM by Visio Guy »
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1737
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Conditional Formatting Visio 2007
« Reply #16 on: July 29, 2008, 07:21:01 PM »
One more note on my last example:

There are two lists that we are considering: a list of states, and a list of colors.

We get an index of which state is selected by using the LOOKUP function. This value is then used to "index into" our list of colors.

On first glance, it almost looks like we are doing a circle by "indexing a lookup", but since we have two lists, it actually makes sense.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4838
  • Ideas Visio-lized into solutions
Re: Conditional Formatting Visio 2007
« Reply #17 on: July 29, 2008, 09:47:02 PM »
An understated point of power and efficiency of this approach, not immediately obvious to some of us slower folks, is that the color index list is not restricted to the values and the order shown.  So, CA doesn't have to be white.  The 1,2,3,4 index could be 5,8,6,9 yielding:

California is yellow (5)
Florida is brown ( 8 )
Illinois is pink (6)
Virginia is drk green (9)

Thanks Visio Guy!

 ;D
Visio 2019 Pro

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3369
    • Paul Herber's website
Re: Conditional Formatting Visio 2007
« Reply #18 on: July 31, 2008, 11:35:29 AM »
mmmmmmmmm  :)
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3369
    • Paul Herber's website
Re: Conditional Formatting Visio 2007
« Reply #19 on: July 31, 2008, 11:42:11 AM »
nevermind, i inserted this for my formula and it worked great. 

= "-lookup(Prop.Sep, " & Chr$(34) & "1;2;3;4;5" & Chr$(34) & ")"
thanks again though for all your help, I don't know where i'd be without it!!!!
~G

Ah yes, that's because your lookup formula contained " characters so the first one effectively closed the formula. As you may have realised chr$(34) is character 34decimal = 22hex = the doublequotes character. I think you can do the same thing by putting the doublequotes character twice.

Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/