Good Afternoon,
Is there a way to force a user to fill out certain cells, they use data validation, or they cannot save the file? I guess pop up a msg saying you must fill out blah blah before you can save.
Thanks!
Good Afternoon,
Is there a way to force a user to fill out certain cells, they use data validation, or they cannot save the file? I guess pop up a msg saying you must fill out blah blah before you can save.
Thanks!
Hello dw_22801,
Yes. It can be done, but then we need to know which Cells require mandatory data.
Please attach a sample workbook (not a picture or pasted copy).
Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
Remember to desensitize the data.
Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
Please consider:
Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
Thanks! The Lease Deal Sheet tab is the one that requires info. Just the brown highlighted fields should be required. You will see there is some code that allows populating in the drop downs, so I would like that to stay. Also, can all fields be cleared out once it closes, too? So each time its opened, the user has to enter the info from the beginning? So in summary, can we require each brown field to be filled out, if not, then a msg box tells them to fill out all required fields, and they cannot save the file. Then once they have filled out, when they close the sheet, all of the fields are cleared?
Thanks!
Code for workbook Event
![]()
Please Login or Register to view this content.
Last edited by kvsrinivasamurthy; 02-07-2019 at 04:42 AM.
Pl note
Array formula should be confirmed with Ctrl+Shift+Enter keys together.
If answere is satisfactory press * to add reputation.
That's great! Can we have the following events? Can we have it where once an attempt to close happens, and Yes to save is hit, the msg box comes up as it does, but also it doesn't actually close at that point. So it only closes when No to save is chosen?
Revised code
![]()
Please Login or Register to view this content.
Last edited by kvsrinivasamurthy; 02-07-2019 at 11:46 AM.
Awesome! Not sure if I'm missing something, but should it be clearing out all the fields when it closes? Basically I am trying to force the user to enter all of the information from blank fields each time they open it in order to reduce instances of wrong info. I don't want them to be able to leave info from a previous sheet. They basically create one of these for each new contract we do and send a copy out. Thanks for your help!
Hello dw_22801,
I am now totally confused, as you state in Post#3,And now you ask,Also, can all fields be cleared out once it closes, too? So each time its opened, the user has to enter the info from the beginning? So in summary, can we require each brown field to be filled out, if not, then a msg box tells them to fill out all required fields, and they cannot save the file. Then once they have filled out, when they close the sheet, all of the fields are cleared?Awesome! Not sure if I'm missing something, but should it be clearing out all the fields when it closes?
When I close out the sheet, the fields are not clearing, but that is what I was hoping to do. It opens up and the same info is in each field.
I guess I phrased the second question incorrectly. I am wanting it to clear out the fields, but the last sheet I tried was not doing that.
Hello dw_22801,
Expanding on what kvsrinivasamurthy had given you, please replace this Code below;
With this Code;![]()
Please Login or Register to view this content.
And tell me it is working now.![]()
Please Login or Register to view this content.
Regards.
Close. It looks like when it is saved successfully and closed, the fields aren't cleared. Can that happen too? So the sheet never opens with info in the fields?
Hello dw_22801,
To accomplish that, we simply add the Code below;So the sheet never opens with info in the fields?
Play around with the attached sample Workbook now, and enjoy!![]()
Please Login or Register to view this content.
Regards.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks