WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

linking VISIO external data to shapes

 
   Home -> Office other -> General Discussions RSS
Next:  Zoom to off page shape on Web  
Author Message
LeeAnn

External


Since: Oct 10, 2008
Posts: 6



(Msg. 1) Posted: Mon Nov 03, 2008 11:00 am
Post subject: linking VISIO external data to shapes
Archived from groups: microsoft>public>visio>general (more info?)

I continue to have problems linking shapes to external data:

I have customized a VISIO 2007 professional session so that the shape data
holds only one attribute "unique id". This attribute is used to link a Shape
to external data (Excel 2003 spreadsheet) that has 30 data elements
(columns). When I add a row or change row values in the Excel 2003
spreadsheet and then refresh the external data, the VISIO shape data changes
from only one
attribute to 31 attributes. I would like the shape data to remain as only
one attribute ("unique id").

It was suggested that when I create the original link, I can Select Columns
from the Data Selector, to limit the shape data created. I tried this. Only
the one column shows in the shape data....but... that is also what shows in
the external data window of VISIO. I would like the 1 attribute to show in
the shape data and all 31 to show in the external data window.

Any suggestions on how to change this behavior.

Thanks for the help
-Lee Ann
Back to top
Login to vote
David Parker

External


Since: Nov 25, 2003
Posts: 524



(Msg. 2) Posted: Tue Nov 04, 2008 8:00 am
Post subject: Re: linking VISIO external data to shapes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What you are trying to do is not normal functionality - Link Data to Shapes
is supposed to cache the properties in the shapes.
Therefore, you will need to do some customisation, which could be one of the
following:
1. Hide the extra Shape Data rows in the shapes (using the
2. Write a custom Link Data to Shapes that only copies the UniqueID field
3. Only link the one column from the spreadsheet, but write you own data
window for the complete set of columns

1 is the least complicated because you could do the following in VBA (I have
used "Network Name" as the column label so that you can test with the Visio
sample "It Asset Management"):

Public Sub HideExtraData()
ChangeDataHidden "Network Name", True
End Sub

Public Sub ShowExtraData()
ChangeDataHidden "Network Name", False
End Sub

Public Sub ChangeDataHidden(ByVal label As String, ByVal hide As Boolean)
Dim shp As Visio.Shape
Dim pag As Visio.Page
Dim iRow As Integer
Dim hiddenFormula As String
If hide = True Then
hiddenFormula = "=1"
Else
hiddenFormula = "="
End If

For Each pag In Visio.ActiveDocument.Pages
For Each shp In pag.Shapes
For iRow = 0 To shp.RowCount(Visio.visSectionProp) - 1
If shp.CellsSRC(Visio.visSectionProp, iRow,
Visio.visCustPropsLabel).ResultStr("") <> label Then
shp.CellsSRC(Visio.visSectionProp, iRow,
Visio.visCustPropsInvis).Formula = hiddenFormula
End If
Next iRow
Next shp
Next pag
End Sub


"LeeAnn" wrote in message

> I continue to have problems linking shapes to external data:
>
> I have customized a VISIO 2007 professional session so that the shape data
> holds only one attribute "unique id". This attribute is used to link a
> Shape
> to external data (Excel 2003 spreadsheet) that has 30 data elements
> (columns). When I add a row or change row values in the Excel 2003
> spreadsheet and then refresh the external data, the VISIO shape data
> changes
> from only one
> attribute to 31 attributes. I would like the shape data to remain as only
> one attribute ("unique id").
>
> It was suggested that when I create the original link, I can Select
> Columns
> from the Data Selector, to limit the shape data created. I tried this.
> Only
> the one column shows in the shape data....but... that is also what shows
> in
> the external data window of VISIO. I would like the 1 attribute to show in
> the shape data and all 31 to show in the external data window.
>
> Any suggestions on how to change this behavior.
>
> Thanks for the help
> -Lee Ann
Back to top
Login to vote
Bettycarson




Joined: Dec 01, 2009
Posts: 8



(Msg. 3) Posted: Wed Mar 17, 2010 1:45 am
Post subject: Re: linking VISIO external data to shapes [Login to view extended thread Info.]

Visio IT asset management has Introduced a new Pivot Diagrams in Visio, a visually exciting way of presenting data which allows you to customize data in your diagrams using Data Graphics.
VISIO tool helped me take my architectural drawings to a new level with it's dynamic, data-driven visualization tools and templates, enhanced process management capabilities,and advanced Web sharing.
http://bit.ly/95yXp3
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> General Discussions All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Help Forum Terms of Service |
  • Link to WUGNET |
  • IT Support