Skip to main content
1-Visitor
June 20, 2017
Question

How to keet my choose in Combo Box in MathCad 15

  • June 20, 2017
  • 3 replies
  • 2689 views

Hi everybody

I usually use Combo boxes in mathcad 15, bu t the problem is that if you choose something in there even after you save your file , the combo box selection will back to the default when you open it again ( because of script behind it)

for example in below image what should I write in script to keep my choose before last save?

any help in this regards will be highly appreciated

Thanks

Untitled.jpg

3 replies

21-Topaz II
June 20, 2017

Hi

please, would you attach a small sample worksheet.

Greetings

Ramakr561-VisitorAuthor
1-Visitor
June 20, 2017

There u go

but just make sure to choose "NO" in prompt when you open the file

if you choose "Yes" all scripts will be disabled

Thanks

25-Diamond I
June 20, 2017

Its nothing you just would write in the script to remember the state of a control as you first would have to save the state somewhere in the sheet.

Here you may find a solution to your problem -> Saving the state of controls.zip

Ramakr561-VisitorAuthor
1-Visitor
June 20, 2017

Thanks Werner

It helped me a lot and really impressed me

Ramakr561-VisitorAuthor
1-Visitor
June 21, 2017

here it is

I made it and you can use it also for yourself

i tried to make it simple so you do not see unnecessary sentences or inputs in script

Thanks @Richard Jackson & @Werner Exinger alot