Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Can i restrict input in a cell until previous cell populated?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Can i restrict input in a cell until previous cell populated?

You most likely will remain frustrated if you cannot provide more details
than you have.

Try this sheet event code.

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "B1:B10" '<== change to suit
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Application.EnableEvents = False
With Target
If .Offset(0, -1).Value = "" Then
MsgBox "please fill in" & .Offset(0, -1).Address
.ClearContents
End If
End With
End If
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Mon, 7 Dec 2009 06:42:01 -0800, FRUSTRATED_WITH_EXCEL
wrote:


Reply
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
First populated cell in row array/ Last populated cell in row arra Skyscan Excel Worksheet Functions 7 May 29th 08 05:20 PM
How do I restrict cell entries that are determined by a previous l Gruntos Excel Discussion (Misc queries) 1 August 22nd 07 10:08 AM
how do I restrict cell input to dates only? James E Slack Excel Discussion (Misc queries) 2 December 12th 05 12:10 AM
Restrict input into cell array dlp1848 Excel Discussion (Misc queries) 1 September 26th 05 08:35 PM
input value in a cell when the previous cell is greater than 0 vinod New Users to Excel 1 December 2nd 04 06:15 PM


All times are GMT +1. The time now is 04:23 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"