A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Colour shape from label value?



 
 
Thread Tools Display Modes
  #1  
Old August 3rd, 2007, 02:28 AM posted to microsoft.public.visio.general
John
external usenet poster
 
Posts: 2,649
Default Colour shape from label value?

I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name of
the person who is filling a position. If a position is not filled then the
data that is returned is "00". What I want to do is have any shape with "00"
in the name field to be filled with the colour red.

Is this possible?
  #2  
Old August 3rd, 2007, 09:02 AM posted to microsoft.public.visio.general
David Parker
external usenet poster
 
Posts: 467
Default Colour shape from label value?

Have you tried the Color By Value add-on under Maps and Floor Plans?

"John" wrote in message
...
I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name
of
the person who is filling a position. If a position is not filled then
the
data that is returned is "00". What I want to do is have any shape with
"00"
in the name field to be filled with the colour red.

Is this possible?


  #3  
Old August 3rd, 2007, 09:12 AM posted to microsoft.public.visio.general
Philippe C.
external usenet poster
 
Posts: 210
Default Colour shape from label value?

Dear John,

I am sorry, but I don't know why the solution I propose does not work.
The default property is "Value", is not it ?

In the Shapesheet, change cell FillForegnd to :
=IF(Prop.Name="",2,HSL(0,0,240))

"John" wrote:

I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name of
the person who is filling a position. If a position is not filled then the
data that is returned is "00". What I want to do is have any shape with "00"
in the name field to be filled with the colour red.

Is this possible?

  #4  
Old August 5th, 2007, 11:24 PM posted to microsoft.public.visio.general
John
external usenet poster
 
Posts: 2,649
Default Colour shape from label value?

Hi David

As far as I could tell, the Color by Value, doesn't allow me to define any
variables. I can only select the color according to the value that is
already there?

"David Parker" wrote:

Have you tried the Color By Value add-on under Maps and Floor Plans?

"John" wrote in message
...
I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name
of
the person who is filling a position. If a position is not filled then
the
data that is returned is "00". What I want to do is have any shape with
"00"
in the name field to be filled with the colour red.

Is this possible?



  #5  
Old August 5th, 2007, 11:28 PM posted to microsoft.public.visio.general
John
external usenet poster
 
Posts: 2,649
Default Colour shape from label value?

Hi Philippe,

Are you saying it won't work for you? I'm not sure what you mean, but it
doesn't work for me.

If it should work for me, how do I set "Prop.Name" to the property name that
I want it to look at? When I tried to use the property name instead of
"Name", it said there was an error.

"Philippe C." wrote:

Dear John,

I am sorry, but I don't know why the solution I propose does not work.
The default property is "Value", is not it ?

In the Shapesheet, change cell FillForegnd to :
=IF(Prop.Name="",2,HSL(0,0,240))

"John" wrote:

I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name of
the person who is filling a position. If a position is not filled then the
data that is returned is "00". What I want to do is have any shape with "00"
in the name field to be filled with the colour red.

Is this possible?

  #6  
Old August 6th, 2007, 08:18 AM posted to microsoft.public.visio.general
Philippe C.
external usenet poster
 
Posts: 210
Default Colour shape from label value?

I just found the solution in the dutch discussion group (in dutch).
I probably forgot the "getref" to the property.
I don't have time at this moment to test it.

"John" wrote:

Hi Philippe,

Are you saying it won't work for you? I'm not sure what you mean, but it
doesn't work for me.

If it should work for me, how do I set "Prop.Name" to the property name that
I want it to look at? When I tried to use the property name instead of
"Name", it said there was an error.

"Philippe C." wrote:

Dear John,

I am sorry, but I don't know why the solution I propose does not work.
The default property is "Value", is not it ?

In the Shapesheet, change cell FillForegnd to :
=IF(Prop.Name="",2,HSL(0,0,240))

"John" wrote:

I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name of
the person who is filling a position. If a position is not filled then the
data that is returned is "00". What I want to do is have any shape with "00"
in the name field to be filled with the colour red.

Is this possible?

  #7  
Old August 6th, 2007, 03:46 PM posted to microsoft.public.visio.general
Philippe C.
external usenet poster
 
Posts: 210
Default Colour shape from label value?

getref or no getref, my formula allways equals to true, HELP !

"Philippe C." wrote:

I just found the solution in the dutch discussion group (in dutch).
I probably forgot the "getref" to the property.
I don't have time at this moment to test it.

"John" wrote:

Hi Philippe,

Are you saying it won't work for you? I'm not sure what you mean, but it
doesn't work for me.

If it should work for me, how do I set "Prop.Name" to the property name that
I want it to look at? When I tried to use the property name instead of
"Name", it said there was an error.

"Philippe C." wrote:

Dear John,

I am sorry, but I don't know why the solution I propose does not work.
The default property is "Value", is not it ?

In the Shapesheet, change cell FillForegnd to :
=IF(Prop.Name="",2,HSL(0,0,240))

"John" wrote:

I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name of
the person who is filling a position. If a position is not filled then the
data that is returned is "00". What I want to do is have any shape with "00"
in the name field to be filled with the colour red.

Is this possible?

  #8  
Old August 6th, 2007, 03:50 PM posted to microsoft.public.visio.general
David Parker
external usenet poster
 
Posts: 467
Default Colour shape from label value?

Use STRSAME for testing text equality:
STRSAME(Prop.Name,"")
NOT
Prop.Name=""

"Philippe C." wrote in message
...
getref or no getref, my formula allways equals to true, HELP !

"Philippe C." wrote:

I just found the solution in the dutch discussion group (in dutch).
I probably forgot the "getref" to the property.
I don't have time at this moment to test it.

"John" wrote:

Hi Philippe,

Are you saying it won't work for you? I'm not sure what you mean, but
it
doesn't work for me.

If it should work for me, how do I set "Prop.Name" to the property name
that
I want it to look at? When I tried to use the property name instead of
"Name", it said there was an error.

"Philippe C." wrote:

Dear John,

I am sorry, but I don't know why the solution I propose does not
work.
The default property is "Value", is not it ?

In the Shapesheet, change cell FillForegnd to :
=IF(Prop.Name="",2,HSL(0,0,240))

"John" wrote:

I am using Visio 2003 to display an org chart. I am using the
wizard found
at add-ons/building plans/label shapes to import data for the shape
labels
from an excel spreadsheet. One of the fields I am importing is the
name of
the person who is filling a position. If a position is not filled
then the
data that is returned is "00". What I want to do is have any shape
with "00"
in the name field to be filled with the colour red.

Is this possible?


  #9  
Old August 6th, 2007, 04:06 PM posted to microsoft.public.visio.general
Philippe C.
external usenet poster
 
Posts: 210
Default Colour shape from label value?

The solution =IF(STRSAME(Prop.Name,"00"),2,3)
in the cell FillForegnd.
To my defence, strsame is not to be found in the SDK dvsdoc.pdf. An Office
function ?

"John" wrote:

Hi Philippe,

Are you saying it won't work for you? I'm not sure what you mean, but it
doesn't work for me.

If it should work for me, how do I set "Prop.Name" to the property name that
I want it to look at? When I tried to use the property name instead of
"Name", it said there was an error.

"Philippe C." wrote:

Dear John,

I am sorry, but I don't know why the solution I propose does not work.
The default property is "Value", is not it ?

In the Shapesheet, change cell FillForegnd to :
=IF(Prop.Name="",2,HSL(0,0,240))

"John" wrote:

I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name of
the person who is filling a position. If a position is not filled then the
data that is returned is "00". What I want to do is have any shape with "00"
in the name field to be filled with the colour red.

Is this possible?

  #10  
Old August 7th, 2007, 12:40 AM posted to microsoft.public.visio.general
John
external usenet poster
 
Posts: 2,649
Default Colour shape from label value?

All hail Philippe!

This works perfectly!

"Philippe C." wrote:

The solution =IF(STRSAME(Prop.Name,"00"),2,3)
in the cell FillForegnd.
To my defence, strsame is not to be found in the SDK dvsdoc.pdf. An Office
function ?

"John" wrote:

Hi Philippe,

Are you saying it won't work for you? I'm not sure what you mean, but it
doesn't work for me.

If it should work for me, how do I set "Prop.Name" to the property name that
I want it to look at? When I tried to use the property name instead of
"Name", it said there was an error.

"Philippe C." wrote:

Dear John,

I am sorry, but I don't know why the solution I propose does not work.
The default property is "Value", is not it ?

In the Shapesheet, change cell FillForegnd to :
=IF(Prop.Name="",2,HSL(0,0,240))

"John" wrote:

I am using Visio 2003 to display an org chart. I am using the wizard found
at add-ons/building plans/label shapes to import data for the shape labels
from an excel spreadsheet. One of the fields I am importing is the name of
the person who is filling a position. If a position is not filled then the
data that is returned is "00". What I want to do is have any shape with "00"
in the name field to be filled with the colour red.

Is this possible?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.