2 Replies Latest reply: Jan 14, 2010 12:12 PM by Daniel Auberson RSS

    Changing value of variable

      I wonder if someone can help.

      I set up a variable in script: LET vZoom=0;

      I'm trying to create a button that will toggle the value of the variable between 0 and 1 every time I press it by running the following macro:

      SUB Zoom_Toggle()
      Select Case vZoom
      Case 1
      Case 0
      End Select
      ActiveDocument.Variables("vZoom").SetContent vTest, true
      END SUB

      However, the button only seems to change the value the first time I press it and stops working.

      Am I missing something?

      Thanks for helping