View Single Post
 
Old 03-26-2019, 03:52 PM
Lambo Lambo is offline Windows 7 32bit Office 2010
Novice
 
Join Date: Mar 2019
Posts: 2
Lambo is on a distinguished road
Default Expand/Hide Subordinates with double click

Hi,

I'm trying to create an organisation chart where the subordinates are expanded or hidden by double clicking on the manager.

At the moment, I use this macro using the "Behaviour" option on double click:

Sub Expand()
Call Visio.Application.Addons("OrgC11").Run("/expandsubordinates")
End Sub

But ideally I'd like double click to be "hide/expand subordinates", swapping them to the opposite state they're initially in.

Anyone able to help with this? As you can probably tell, I've no experience with VBA, Macros or even Visio until this week!

Thanks
Reply With Quote