Hi
Ive made a new checkbox on the ribbon.
How can i save the status in the register. And by reopen the work see if the checkbox is checked ore not
Hi
Ive made a new checkbox on the ribbon.
How can i save the status in the register. And by reopen the work see if the checkbox is checked ore not
Last edited by glda19; 10-29-2019 at 11:49 AM.
Hi there,
I think you'll need to save the state of the Checkbox somewhere in your workbook (cell, named constant etc.) and then, when the workbook is opened, invalidate the Checkbox to set its state in accordance with the stored value.
Hope this helps.
Regards,
Greg M
you can save that in the registry
Hi again,
You can save it in the registry only if your Admin people allow you to do so - saving it in the workbook keeps things fully under your own control.
Regards.
Greg M
Last edited by Greg M; 11-02-2019 at 07:58 AM.
Thanks for your response.
You can also save the value in a 'Built In' or 'Custom' Document Property.
For example:
See the file associated with post #4 in the following thread for a working file that contains the above code: http://www.excelforum.com/excel-gene...tact-info.htmlPlease Login or Register to view this content.
In Excel 2016 you can see the properties: File > Info > Properties (top right) > Advanced Properties
Lewis
VBA has the savesetting and GetSetting methods to read/write to registry.
https://docs.microsoft.com/en-us/off...6)%26rd%3Dtrue
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks