On 11/3/2009 4:29:47 PM, mgkoenig wrote:
Thanks Stuart - I must be doing something wrong becasue it is still not working. I attached your script in the file called PASS_FAIL.xmcd.
I should be able to chage the RESULT to = "FAIL" and the text box should turn red.
Thanks for your help. I'm not going to spend much more time, but it does bug me.
Also, if I type "End Sub" at the bottom of the script I get an error??
All of your text boxes were disabled, Matt. When I enabled them, they worked.
Change the variable 'Test' at the bottom of the attached worksheet to be "PASS". If the text box doesn't change to yellow, then right-click on the box and see if (last item) in the pop-up menu says 'Enable Evaluation' or 'Disable Evaluation'.
If it says 'Enable Evalution' then something is probably changing the security settings for Mathcad. Click 'Enable Evaluation' and it should work.
If it says 'Disable Evaluation' then try pressing ctl-F9. If that doesn't work, then you're out of my knowledge base, I'm afraid.
(Note: Case is important)
Stuart