![]() |
#4
|
||||
|
||||
![]()
In the case of the OrgCharts, there is a setting you could interrogate to find out if it is collapsed or not. Then it is a case of calling the relevant addon macro. If your shape subselects on double clicking then you will need to change Selection to 'Group only' in the behavior dialog.
Code:
Sub ShowerOrGrower() Dim sel As Visio.Selection, aShp As Visio.Shape Set sel = ActiveWindow.Selection Set aShp = sel.PrimaryItem If aShp.CellsU("User.ShowSubordinates").Formula = 0 Then Call Visio.Application.Addons("OrgC11").Run("/expandsubordinates") Else Call Visio.Application.Addons("OrgC11").Run("/hidesubordinates") End If End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
vba visio macro |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
robbinskelly7 | Excel | 1 | 02-09-2015 07:05 PM |
![]() |
ykhalil | Office | 1 | 11-10-2014 05:00 AM |
Play Shockwave on a double click | dedine | PowerPoint | 4 | 06-03-2013 08:26 AM |
![]() |
300zxmuro | Word | 1 | 02-27-2011 03:02 PM |
Cannot Double Click on Microsoft Word Document | weeleong87 | Word | 0 | 07-19-2009 05:54 AM |