Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello!
I have created a worksheet with all the cells locked except the ones I want the information in and the sheets protected. The user can then tab from one cell to the other entering information, I would like to make it so they have to enter information in the cells or the warning is set off stating that they need to enter information. How can I do this? Thank you. Lou |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Assumes you have "select locked cells" disabled under ToolsProtectionProtect
Sheet. Private Sub Worksheet_SelectionChange(ByVal Target As Range) MsgBox "you must enter data in this cell" End Sub This is sheet event code. Right-click on the sheet tab and "View Code" Copy/paste into that sheet module. Gord Dibben MS Excel MVP On Wed, 10 Oct 2007 15:20:01 -0700, Louis Markowski wrote: Hello! I have created a worksheet with all the cells locked except the ones I want the information in and the sheets protected. The user can then tab from one cell to the other entering information, I would like to make it so they have to enter information in the cells or the warning is set off stating that they need to enter information. How can I do this? Thank you. Lou |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Gord,
Thank you! When I use the code the message box pops up before and after every time i hit enter. I would like it to activate when the user exits the cell and only if they left it blank, thoughts? Thank you. Lou "Gord Dibben" wrote: Assumes you have "select locked cells" disabled under ToolsProtectionProtect Sheet. Private Sub Worksheet_SelectionChange(ByVal Target As Range) MsgBox "you must enter data in this cell" End Sub This is sheet event code. Right-click on the sheet tab and "View Code" Copy/paste into that sheet module. Gord Dibben MS Excel MVP On Wed, 10 Oct 2007 15:20:01 -0700, Louis Markowski wrote: Hello! I have created a worksheet with all the cells locked except the ones I want the information in and the sheets protected. The user can then tab from one cell to the other entering information, I would like to make it so they have to enter information in the cells or the warning is set off stating that they need to enter information. How can I do this? Thank you. Lou |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data Validation on blank cells | Excel Worksheet Functions | |||
Data Validation with Blank Date | Excel Worksheet Functions | |||
Adding a blank in Data Validation List? | Excel Discussion (Misc queries) | |||
Loading Column Data with blank Rows into Data Validation Box | Excel Worksheet Functions | |||
How do I set up a drop down validation to ignore any blank cells? | Excel Discussion (Misc queries) |