Show a form on all worksheets in an Excel file

别等时光非礼了梦想. 提交于 2020-01-25 07:59:24

问题


I am writing a little generator script (using Excel VBA) to generate a bunch of source code, given various input from users.

Currently I have one 'generator control' worksheet that provides access to the generation scripting tools. Here there is a button that pops up a little form with various generation options.

Each portion of source code also gets its own worksheet for generation purposes. So, I essentially have one worksheet for generation commands and perhaps 10-20 that are for source code parameters.

What I would like to do is somehow take my popup form and embed it within each other worksheet...make it 'always visible' in the corner or something like that.

Each source code worksheet is generated programmatically as well...I'd assume that I could replicate my popup button for each worksheet, but I'd rather have this form always visible.

Is something like this possible?


回答1:


Rather than putting it on the worksheet, could you not have a toolbar button that simply pops up a dialog? (In other words, your user interface is a UserForm rather than a set of worksheet controls).



来源:https://stackoverflow.com/questions/1741605/show-a-form-on-all-worksheets-in-an-excel-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!