Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 974
  • Last Modified:

Visio 2013 - the GUARD function

I looked up sites, used the help screen but I am really having a hard time understanding the GUARD function.
Can someone give me a couple simple, kindergarten examples?
0
brothertruffle880
Asked:
brothertruffle880
2 Solutions
 
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
The general idea with GUARD() is to prevent a particular cell value from being changed via the user interface (or in many cases by code). For example, draw a rectangle and manually set the fill color to 1 (white) and the fill pattern to 1 (solid). At this point you will be able to change the shape color by using the Fill button on the ribbon. Next, change the value in the fill color cell from 1 to GUARD(1). You will no longer be able to change the fill color using the Fill button.
0
 
Visio_GuyCommented:
Guard should be wrapped around a whole formula as well, not just a portion of a formula.

It is generally used in the Shape Transform section and Line and Fill sections. Occasionally also used to lock down a Shape Data value as read-only.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now