Hi,
looking for vb code where a msgbox only disappears when value "Finished" is entered in cell A1. Until then, the msgbox stays active
Thanks
Hi,
looking for vb code where a msgbox only disappears when value "Finished" is entered in cell A1. Until then, the msgbox stays active
Thanks
If a message box is active you will not be able to enter data in the sheet. So what you are proposing cannot be accomplished. You could have a message box pop up everytime a value is changed in the worksheet if "Finished" is not in cell A1 or you could set up an inputbox on a loop to force a string to be entered into a cell through the input box. A UserForm could accomplish what you are wanting to do but it is a little bit trickier.
Last edited by stnkynts; 06-17-2015 at 07:05 PM.
Hi biznez,
Try the attached sample workbook which should help you get started. It displays a 'Faux' MsgBox that disappears when cell 'A1' contains 'Finished'.
You don't have to use my UserForm, you can use your own. The UserForm has to be opened 'NonModally'
The code that does the heavy lifting follows:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Lewis
I would think it would be easier to just set the UserForm ShowModal property to false, which will allow work to be perfomed on the sheet while the userform is still visible. Then trigger an unloading of the userform by worksheet_change event when A1 = Finished.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks