Hide userform in VBA in order to work with data

2019-08-12 17:27发布

I have a following problem. I would like to hide a userform in order to work with data in worksheet.

I would like to enable user to get back to application. So I thought if there is a possibility to move userform down on the screen and activate workbook. Afterwards the user could drag userform back in the middle of the screen and work with it again.

Does anyone have an experience with something like that?

1条回答
你好瞎i
2楼-- · 2019-08-12 17:31

You can use me.hide to hide userform, retaining all values entered into the form. Use me.show to bring back the userform to the screen.

This is different from unload me, which unload the userform from memory, destroying all values entered. Calling the form again will start the form a new.

If you want the form to be still visible and allow user to interact with worksheet behind, then set the ShowModal property to False.. The default is True.

查看更多
登录 后发表回答