• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

bVisual

  • Home
  • Services
    • How Visio smartness can help your business
    • Visio visual in Power BI
    • Visio Consulting Services
    • Visio Bureau Services
    • Visio Training and Support Services
  • Products
    • Visio Shape Report Converter
    • SS Plus
    • LayerManager
    • visViewer
    • Metro Icons
    • Rules Tools for Visio
    • The Visio 2010 Sessions App
    • Multi-Language Text for Visio
    • Document Imager for Visio
    • multiSelect for Visio
    • pdSelect for Visio
  • Case Studies
    • Case studies overview
    • Using Visio in Education for GIS
    • Visualizing Construction Project Schedules
    • Visio Online Business Process Mapping
    • Nexans Visio Template
    • CNEE Projects, WorldCom
    • Chase Manhattan Bank
  • News
    • Recent news
    • News archive
  • Resources
    • Articles➡
      • ShapeSheet Functions A-Z
      • Comparing Visio for the Web and Desktop
      • Customising Visio Shapes for the Web App
      • Key differences between the Visio desktop and web apps
      • Using the Visio Data Visualizer in Excel
      • Using Visio in Teams
      • Creating Visio Tabs and Apps for Teams with SharePoint Framework (SPFx)
      • Designing Power Automate Flows with Microsoft Visio
      • Innovative uses of Visio Lists
    • Webcasts ➡
      • Visio in Organizations
      • My session and other Visio sessions at MSIgnite 2019
      • Power up your Visio diagrams
      • Vision up your Visio diagrams
      • The Visio 2010 MVP Sessions
    • Visio Web Learning Resources
    • Books➡
      • Visualize Complex Processes with Microsoft Visio
      • Mastering Data Visualization with Microsoft Visio
      • Microsoft Visio Business Process Diagramming and Validation
      • Visualizing Information with Microsoft Visio
  • Blog
    • Browse blog articles
    • Visio Power BI articles
    • Visio for Web articles
    • A history of messaging and encryption
  • About us
    • About bVisual
    • Testimonials
    • Bio of David Parker
    • Contact Us
    • Website Privacy Policy
    • Website terms and conditions
    • Ariba Network
You are here: Home / Visio / Using SharePoint Calendars with Visio Timelines

Published on July 24, 2008 by David Parker

Using SharePoint Calendars with Visio Timelines

I was recently asked if it is possible to use SharePoint calendars with Visio Timeline Shapes automatically. My first reaction was “not without code”, but a closer inspection reveals that you can use Visio 2007 Professional Link Data to Shapes quite easily….

Firstly, I found the WSS Demo site http://www.wssdemo.com/application/default.aspx to be useful. [This is no longer available]

In Visio 2007 Professional, you can use Data / Link Data to Shapes … to get data from Microsoft Windows SharePoint Services:

image

Then enter http://www.WSSDemo.com (or your own) as the Site.

image

And login of course, in this case the password is pass@word1.

image

Then select the Calendar list:

image

Now, you need to rename the Title, Start Time and End Time columns by selecting Column Settings …  on the right mouse menu of the External Data window…

image

.. to Task Name, Start and Finish .  This is important, because this will be used to match the values from the calendar to the shape properties.

image

Drag and drop a Timeline shape, and set the Start and Finish to your requirements….

image

Then, select an Interval shape in the stencil, and drag a row from the External Data window, and drop it on the page (not over the Timeline itself). The Configure Interval dialogue will popup, which you can just OK.

image

In addition to the three columns that we previously mapped, all of the other columns will be automatically added as extra Shape Data rows on each shape.

image

Of course, you can use Milestones or Intervals….

image

Q.E.D.

Post script:

The sample data happens to include hyperlinks as text, but you can ensure that Visio interprets them as real hyperlinks by checking the Hyperlink box on the Types and Units dialogue opened from the Data Type… button on the Column Settings dialogue.

image

You will then get hyperlinks on your shapes!  And you can have multiple ones per shape!

image

Ye gads … Visio is cool!

Related

Filed Under: External Data, SharePoint, Visio

About David Parker

David Parker has 25 years' experience of providing data visualization solutions to companies around the globe. He is a Microsoft MVP and Visio expert.

Reader Interactions

Comments

  1. Mateusz Orłowski says

    November 9, 2010 at 11:08 am

    Works fine but if you change a date in SharePoint calendar, the new date will not be displayed in visio drawing.
    Perhaps you have an idea how to fix it?

    Reply
  2. davidjpp says

    November 26, 2010 at 11:55 am

    Hmm, I see what you mean. Try this macro after you refresh from the wss:

    Public Sub UpdateStartEnd()
    Const startProp As String = “Prop.visIntervalBegin”
    Const endProp As String = “Prop.visIntervalEnd”
    Dim shp As Visio.Shape
    Dim pag As Visio.Page
    Dim iRecord As Integer
    Dim dataRecordsetIDs() As Long
    Dim dataRecordset As Visio.dataRecordset
    Dim customPropertyIndices() As Long
    Dim dataColumn As Visio.dataColumn
    Dim dataRow As Long
    On Error GoTo errHandler
    Visio.Application.EventsEnabled = False
    For Each pag In Visio.ActiveDocument.Pages
    For Each shp In pag.Shapes
    If shp.CellExistsU(startProp, Visio.visExistsAnywhere) _
    And shp.CellExistsU(endProp, Visio.visExistsAnywhere) Then
    shp.GetLinkedDataRecordsetIDs dataRecordsetIDs
    For iRecord = 0 To UBound(dataRecordsetIDs)
    If shp.IsCustomPropertyLinked(dataRecordsetIDs(iRecord), _
    shp.Cells(startProp).Row) Then

    Set dataRecordset = Visio.ActiveDocument.DataRecordsets( _
    dataRecordsetIDs(iRecord))
    Set dataColumn = dataRecordset.DataColumns( _
    shp.GetCustomPropertyLinkedColumn(dataRecordsetIDs(iRecord), _
    shp.Cells(startProp).Row))
    dataRow = shp.GetLinkedDataRow(dataRecordset.id)

    If dataRecordset.GetRowData(dataRow)(shp.Cells(startProp).Row) _
    shp.Cells(startProp).ResultStr(“”) Then
    shp.Cells(startProp).Formula = _
    “=DATETIME(“”” & dataRecordset.GetRowData(dataRow)(shp.Cells(startProp).Row) & “””)”
    End If
    End If
    Next iRecord
    End If
    Next shp
    Next pag

    errHandler:
    Visio.Application.EventsEnabled = True
    End Sub

    Reply
  3. Mateusz Orłowski says

    November 26, 2010 at 3:30 pm

    David, thanks for your reply. The problem is not in Visio 2010 itself – it refreshes start and finish without macro help. The drawing within SharePoint site (.vdw) doesn’t “see” the changes to Start and Finish columns. Macro will not work in this case because as far as I know macros are not supported.

    Reply
  4. Howard Kenny says

    October 30, 2019 at 2:30 pm

    Can you advise how to achieve this on a timeline segment in a value stream map?
    Thanks

    Reply
    • David Parker says

      November 21, 2019 at 9:57 am

      That is an interesting question, but I don’t think the MS supplied shapes are particularly suited to it because the Process and Inventory shapes should be coupled with a Timeline segment below it, and then the TimeLine Total should aggregate the values in the preceding Timeline Segments.
      It sounds like a little custom development would be required

      Reply

Trackbacks

  1. Visio Services links « John Palmer @ Citrius says:
    December 11, 2011 at 8:21 am

    […] Using SharePoint Calendars with Visio Timelines […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

  • LinkedIn
  • Twitter

Recent Posts

  • Fixing dimensions of 2D shapes
  • Merging Linked Data from Similar Tables
  • Smart Radio Buttons and Check Boxes in Visio
  • Using Button Face Ids in Visio
  • Grid Snapping Revisited

Categories

Tags

Accessibility Add-Ins Connectors Containers Data Export Data Graphics Data Import Data Visualizer Educational Excel GraphDatabase Hyperlinks Icon Sets JavaScript LayerManager Layers Legend Link Data to Shapes Lists MSIgnite MVP Office365 Org Chart PowerApps PowerBI PowerQuery Processes Setup and Deployment Shape Data Shape Design ShapeSheet ShapeSheet Functions SharePoint 2013 SQL Teams Validation VBA Video Visio Visio 2007 Visio for the Web Visio Online Visio Services Visio Viewer Webinar

Footer

bVisual Profile

The UK-based independent Visio consultancy with a worldwide reach. We have over 25 years experience of providing data visualization solutions to companies around the globe.

Learn more about bVisual

  • Amazon
  • E-mail
  • Facebook
  • LinkedIn
  • Twitter
  • YouTube

Search this website

Recent posts

  • Fixing dimensions of 2D shapes
  • Merging Linked Data from Similar Tables
  • Smart Radio Buttons and Check Boxes in Visio
  • Using Button Face Ids in Visio
  • Grid Snapping Revisited

Copyright © 2025 · Executive Pro on Genesis Framework · WordPress · Log in