LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Creating an organization diagram in Excel

Hi,

I am trying to create an organization chart programmatically in excel.
I got this code from a previous posting, but adding text doesn't work.
I also need to link the boxes together. Can someone please post some
code on how to do that?

Thanks

Dim shDiagram as Shape
Dim nodRoot As DiagramNode
Set shDiagram = ActiveSheet.Shapes.AddDiagram( _
Type:=msoDiagramOrgChart, Top:=10, _
Left:=15, Width:=400, Height:=475)
Set nodRoot = shDiagram.DiagramNode.Children.AddNode
nodRoot.TextShape.TextFrame.Characters.Text = "First Node"

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tree organization in excel Francisco Excel Discussion (Misc queries) 6 September 12th 07 04:56 PM
where can I get organization chart add-in for Excel 2000? kturvey Excel Discussion (Misc queries) 1 July 26th 07 05:58 PM
Excel Data Re-Organization Freedle Beetle Excel Discussion (Misc queries) 1 December 6th 05 07:17 PM
Creating Time location diagram in Excel Sooraj Excel Discussion (Misc queries) 0 January 11th 05 10:18 AM
How do i set up an organization chart in Excel? rox Charts and Charting in Excel 1 December 30th 04 06:11 PM


All times are GMT +1. The time now is 09:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"