excel - Retain combobox value when wb closes -




in continuation following question how store combobox value after workbook closes ? example, if last combobox value may when closed workbook, next time open againg, combobox list value set may.

thank you!

however, can store data in workbook in excel name object, , can store data in customdocumentproperty object. value want store number, 7. store data in name object:

names.add name:="versionnumber", refersto:=7 

and change it:

names("versionnumber").value = 8 

this has advantage name can referred in cell formula (i.e., =versionnumber yield 8 in cell)

similarly, create new customdocumentproperty:

thisworkbook.customdocumentproperties.add _ name:="version number", _ linktocontent:=false, _ type:=msopropertytypenumber, _ value:=7 

and change it:

thisworkbook.customdocumentproperties("version number").value = 12 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -