You have put the second block of code into its own separate standard code module, that is, not part of the userform's code module?
If so attach a workbook so I can see what's going on, otherwise I'm working blind.

2022-02-16_205114.jpg