How to Fix Visio Shape Outline Thickness and Dash Changes Reverting
Question details
The user is unable to permanently change the outline thickness or dash style of task shapes in Microsoft Visio, as the formatting reverts to original settings.

- Product
- Microsoft Visio
- Device & OS
- not provided
- Scenario
- Formatting task shapes and modifying outline properties in a Visio diagram created from a template.
- Observed behavior
- Changes to outline thickness and dash styles are discarded and revert to their default template settings, whereas shape color changes are applied normally.
Ensure you have enabled Developer Mode in Microsoft Visio (File > Options > Advanced > Run in developer mode), as you will need to access the ShapeSheet to unlock these advanced formatting properties.
Remove Guard Formulas from the Visio ShapeSheet
Identify and remove the GUARD function in the shape's ShapeSheet that actively prevents line formatting changes.
Certain Visio shapes, especially those imported from predefined templates, have built-in property protections called 'Guards'. These formulas force specific formatting attributes, such as line thickness and dash type, to remain fixed to the template's standards even if you attempt to override them through the standard user interface.
Right-click the problematic task shape in your Visio diagram and select 'Show ShapeSheet' from the context menu.
In the ShapeSheet window, scroll down until you find the section labeled 'Line Format'.
Look at the 'LineWeight' and 'LinePattern' cells. If they contain a formula wrapped in a guard, such as GUARD(0.25 pt) or GUARD(1), this is what is blocking your edits.
Click into the cell and delete the 'GUARD()' wrapper so it only contains the numerical value (e.g., change GUARD(0.25 pt) to just 0.25 pt). Press Enter to save the change.
Close the ShapeSheet window and attempt to change the outline thickness and dash style from the normal Visio ribbon. The changes should now apply successfully.
Create Professional Diagrams with WPS Office
If you are frustrated with complex shape protections, hidden ShapeSheet restrictions, and strict template limits in Microsoft Office tools, consider switching to WPS Office. It provides intuitive built-in diagramming and formatting tools that make editing shapes effortless.
- 1. Download WPS Office: Visit the official WPS website to download and install the free Office suite for your computer.
- 2. Open a New Document: Launch WPS Writer, Presentation, or Spreadsheet and start a new blank project.
- 3. Insert Shapes and Diagrams: Navigate to the Insert tab on the top ribbon, click on Shapes, and easily drag and drop your required diagram components onto the canvas.
- 4. Customize Without Restrictions: Select any shape and use the intuitive properties panel on the right side to effortlessly adjust outline thickness, dash styles, and fill colors.

Frequently Asked Questions
Why can I change the color of a Visio shape but not its outline thickness?
Shape designers can lock specific attributes individually using the GUARD function in the ShapeSheet. A shape may have its LineWeight locked to maintain strict template consistency, while its FillForegnd (color) is left unlocked for easy status indication.
How do I turn on Developer Mode in Visio to access the ShapeSheet?
Go to File > Options > Advanced. Scroll all the way down to the General section at the bottom and check the box for 'Run in developer mode'. This will add the Developer tab to your top ribbon and enable the 'Show ShapeSheet' right-click option.
How can I apply these ShapeSheet changes to all shapes from a specific Visio template?
Instead of modifying the ShapeSheet for every individual shape on the canvas, edit the Master Shape. Go to your Document Stencil, right-click the master shape, select Edit Master > Edit Master Shape, and modify the ShapeSheet there. This updates all linked instances of that shape in your current diagram.




