nickolushenry
New Member
- Joined
- Jan 7, 2011
- Messages
- 31
Creating a log sheet multiple reps will log data into. I want to prevent reps from leaving cells blank. I would like a VB/validation code that I could copy into the worksheet so that if a cell in column B should becomes active with data, all columns to the right of that cell must contain data before the sheet can be closed and saved. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
Example:<o></o>
<o></o>
Rep enters data into B2. Before such rep can close the sheet or save it, they must enter all the required data into the remaining cells on Row2 B2:X2<o></o>
<o></o>
I would like a pop up to appear if at all possible should they try to save or close it with a blank cell. <o></o>
<o></o>
Currently this is the VBA code I have associated to my worksheet. It just generates the date and time in a given column. <o></o>
<o></o>
Dim bDoNotChange As Boolean<o></o>
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect([C2:C6550], Target) Is Nothing Then
Application.EnableEvents = False
Cells(Target.Row, 15) = Now
Application.EnableEvents = True
End If
End Sub<o></o>
Thanks for any and all help given!!
<o></o>
Example:<o></o>
<o></o>
Rep enters data into B2. Before such rep can close the sheet or save it, they must enter all the required data into the remaining cells on Row2 B2:X2<o></o>
<o></o>
I would like a pop up to appear if at all possible should they try to save or close it with a blank cell. <o></o>
<o></o>
Currently this is the VBA code I have associated to my worksheet. It just generates the date and time in a given column. <o></o>
<o></o>
Dim bDoNotChange As Boolean<o></o>
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect([C2:C6550], Target) Is Nothing Then
Application.EnableEvents = False
Cells(Target.Row, 15) = Now
Application.EnableEvents = True
End If
End Sub<o></o>
Thanks for any and all help given!!