News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

How to keep a themed shape's styling while decoupling shape from theme settings

Started by Visisthebest, February 20, 2023, 12:26:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visisthebest

I have an interesting challenge for the Visio experts (ninjas!) on the forum:

I would like to get a shape to always retain its current design, which is partly derived from the current theme settings, while becoming resistant to any theme changes, effectively creating a static copy of the shape's styling that no longer dynamically changes when the page's theme is changed.

This shape should look the same whatever the current theme and no matter to which page it is copied.

How can I achieve this? Thank you for sharing your insights!
Visio 2021 Professional

wapperdude

So far, all Ive discovered is painful...
Clearly, the Lock properties don't work.

What did work was to open shapesheet, enable show values rather than formulas, scroll to the Line and Fill Format sections.  Then, in each cell that needs to be locked, enter guard function and the value, e.g. Guard(RGB(230,107,45)).   All of it requires manual entry.
Visio 2019 Pro

Visisthebest

Thank you Wapperdude, with some VBA copying over the values from a cell and overwriting the formula of that same cell with the value may be a good solution to achieve this!
Visio 2021 Professional

Yacine

This was also my idea. Tackle it with brute force.
Iterate over all possible sections, rows and columns whilst using their numbers (CellSRC) and catching the errors for non-existing ones.
For each cell retrieve the formula. If it contains "THEMEVAL" or "THEMEGUARD" replace by ResultIU using FormulaForce.


You may limit the sections to really relevant ones.
Yacine

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: 200 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1066KB.
Tokens: post-login.
Cache hits: 13: 0.00193s for 26,738 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]