MACRO: Checkbox dialog box

Hi everyone

I would like to integrate in one of my macros a dialog box opening with a list of choices to check this type (only one choice possible):

And depending on the choice checked, a variable will be filled in.
Does anyone know how to do this?

Thank you very much :slightly_smiling_face:

Hello @MLG ,
See macro attached.
To make the radio buttons mutually exclusive, simply group them in the same container (VBA frame).
When you click OK, the Finish variable changes to a value based on the selected button.
Kind regards.
BoutonsRadios.swp (39 KB)

4 Likes

Thank you @m.blt :+1:
I had started on a userform (as you did) by taking over the POST to which you had already responded brilliantly:
https://forum.mycad.visiativ.com/t/cube-de-visualisation/110916

Here's what I embroidered, so my macro opens a userform (dialog box) for the choice of finish and applies it to all the configurations of a part except config 00 which is still in RAW finish.

Now I have to put all this back together in my main macro ...
00-MACRO TEST. SLDPRT (263.5 KB)
00-TEST USEFORM.swp (48 KB)