Reset listbox selection in VBA

前端 未结 5 513
渐次进展
渐次进展 2021-01-18 18:08

I\'m trying to \'reset\' a listbox in Excel VBA when a form closes. Currently when I use the userform1.hide function the form disappears but when I open it up again using th

5条回答
  •  时光取名叫无心
    2021-01-18 18:16

    Hide and show has no effect. If you want to use "brute force", use unload then load, but it will reset everything (not just the radio buttons) and will be memory consuming (well, if your form doesn't contain thousands of components and your computer is recent etc etc it will be fine though)

    another way to do what you want is simply to run through all radio buttons and uncheck them all

提交回复
热议问题