Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can anyone help with a bit of code to set the formula for conditional show for a textbox?
Hi
You don't need macro code to conditionally display a text box. Simply enter an expression that tests the criteria for displaying the text box into the Properties | Layout | Show Conditional box.
I cannot help with the expression as you have not described any of the display criteria.
Hope that helps
Jonathan
Thanks for the reply. I needed the code because I had >100 text objects that needed the same conditional display expression. QV doesn't let you set that for multiple object selections.
I found the answer:
prop = obj.GetProperties
prop.Layout.Frame.Show.Always = False
prop.Layout.Frame.Show.Expression.v = "expression"
obj.SetProperties prop