News:

Happy New Year!

Main Menu

Disable themes for all shapes/stencils

Started by goltoof, March 24, 2011, 07:17:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

goltoof

I just now noticed the "Allow themes" option is checked on every single one of my shapes.  I'll probably end up using themes eventually, but I don't want themes to affect any of my shapes.

I also noticed I can uncheck "Allow Themes" on a grouped shaped, but when I select a shape inside of the group it's still selected for that shape!

Is there a way to disable themes on all of my shapes without going through them one by one?

Jumpy

A loop through all shapes and subshapes in VBA:

Sub Start()
Dim shp as Visio.Shape

For Each shp in ActivePage.Shapes
 Alter shp
Next

End Sub


Sub Alter(shp as Visio.Shape)
Dim subshp as Shape

shp.CellsSRC(visSectionObject, visRowLock, visLockThemeEffects).FormulaU = "1"


For Each subshp in shp.Shapes
 Alter subshp
Next

End Sub


Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 154 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1064KB.
Tokens: post-login.
Cache hits: 14: 0.00160s for 26,587 bytes (show)
Cache misses: 4: (show)
Queries used: 17.

[Show Queries]