Consulting

Results 1 to 3 of 3

Thread: Row entry without keeping any row blank

  1. #1

    Row entry without keeping any row blank

    I need a solution to a problem whereby a user shall be forced to make data entry in continuous rows. ie if a user make entries at row 2, row 3 he would not be able to make entry at row 4 .

    In other words, suppose a user has to make three entries . He has to use use the first three rows starting from row2 as row1 will contain header.
    He shall not be able to make entries at row 4 after row 3.

    Please note that the number of entries will not be fixed, it will vary for user to user.

    A Wb is attached which will provide more explanation and for ready testing.

  2. #2
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,288
    Location
    ?[VBA]Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If ActiveCell.Offset(-1, 0).Value = vbNullString Then
    ActiveCell.Offset(-1, 0).Select
    End If
    End Sub[/VBA]

  3. #3
    Thanks Charlize,this is what was looking for. Its perfect.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •