LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Require cell entry

You could use the change event. As long as there is something in row 4740
(in another column, even) then the event code below may help. Copy the
code, right click on the sheet tab and select "View Code" and paste the code
in the window that appears.

HTH,
Bernie
MS Excel MVP

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim myRange As Range
Dim myCells As Range

On Error Resume Next
Set myRange = Range("G5:H4740")
If Intersect(Target, myRange) Is Nothing Then Exit Sub
If Target.Row = myRange(1).Row Then Exit Sub

Set myCells = myRange.Resize(Target.Row - myRange(1).Row, 2)
If Application.WorksheetFunction.CountBlank(myCells) 0 Then
MsgBox "Hey, you left blanks in " & _
myCells.SpecialCells(xlCellTypeBlanks).Address
End If
End Sub


"kmcgee" wrote in message
...
I have set data validation to require either a 0 or 1 be entered in the

range 'g5:h4740'. Is there anyway to require the data be entered and not
allow someone to tab through?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Require an entry in a cell Erika Excel Discussion (Misc queries) 3 September 25th 09 09:15 PM
How do I require data entry in a cell before moving to the next ce CindyB Excel Worksheet Functions 3 April 26th 08 04:18 PM
Require specific cell entry before saving file Patrick Riley Excel Discussion (Misc queries) 1 March 21st 08 04:46 PM
Require specific cell entry before saving file Patrick Riley Excel Discussion (Misc queries) 2 March 20th 08 03:50 PM
Require alpha-numeric entry Dana Excel Worksheet Functions 3 September 7th 05 07:53 AM


All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"