LeanidTerbant
New Member
- Joined
- Nov 15, 2010
- Messages
- 16
Hi
I have a UserForm (in Excel 2007 created with VBA) which is primarily going to be used to input data into a workbook. The problem is that the data is located in another workbook, and by default, when the UserForm is open in the first workbook, you're not able to switch between Excel windows. I tried setting the UserForm's ShowModal property to False and it sorta worked; the only issue then is that, while it is then possible to switch between workbooks with the UserForm open, the UserForm stays visible over the top of both, and being quite large, it covers most of the data in the second workbook anyway.
Is there a way to either switch between windows and leave the UserForm behind in the first window, or to have an event run when the activeworkbook changes so that i can shrink my UserForm down to nothing when that happens?
Thanks
I have a UserForm (in Excel 2007 created with VBA) which is primarily going to be used to input data into a workbook. The problem is that the data is located in another workbook, and by default, when the UserForm is open in the first workbook, you're not able to switch between Excel windows. I tried setting the UserForm's ShowModal property to False and it sorta worked; the only issue then is that, while it is then possible to switch between workbooks with the UserForm open, the UserForm stays visible over the top of both, and being quite large, it covers most of the data in the second workbook anyway.
Is there a way to either switch between windows and leave the UserForm behind in the first window, or to have an event run when the activeworkbook changes so that i can shrink my UserForm down to nothing when that happens?
Thanks