Author Topic: Deleting layers without deleting the shapes assigned to it.  (Read 154 times)

0 Members and 1 Guest are viewing this topic.

Yacine

  • Hero Member
  • *****
  • Posts: 2574
Deleting layers without deleting the shapes assigned to it.
« on: November 14, 2018, 05:17:23 AM »
Visio has that nasty feature that when you delete a layer it deletes the shapes assigned to this layer as well.Whilst the UI gives you no option to deactivate this feature, VBA does: https://docs.microsoft.com/en-us/office/vba/api/visio.layer.delete
I've discovered this possibility after years of de-assigning my shapes from the layer before deleting it and thought I'd share.



Yacine