Visio Guy

Visio Discussions => General Visio => Topic started by: Yacine on November 14, 2018, 10:17:23 AM

Title: Deleting layers without deleting the shapes assigned to it.
Post by: Yacine on November 14, 2018, 10: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.