Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Entering information

In a worksheet where you have to fill in information what formula to use if
you want to make sure (example cell A1 is filled in before A2) In other words
they if A1 is not filled in you cant move to A2.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Entering information

To make sure A1 is filled before A2

1. Select A2

2. Enter the below formula in DataValidationCustom and uncheck Ignore blank
=$A$1<""

3. Enter an error message say "Cells A1 should be entered firts" in Data
ValidationError Alert....and click OK.

If this post helps click Yes
---------------
Jacob Skaria


"Link" wrote:

In a worksheet where you have to fill in information what formula to use if
you want to make sure (example cell A1 is filled in before A2) In other words
they if A1 is not filled in you cant move to A2.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Entering information


Hi Jacob,
The formula worked for one worksheet, but the other one already have a data
validation formula and it did not worked. Any other suggestion?
"Jacob Skaria" wrote:

To make sure A1 is filled before A2

1. Select A2

2. Enter the below formula in DataValidationCustom and uncheck Ignore blank
=$A$1<""

3. Enter an error message say "Cells A1 should be entered firts" in Data
ValidationError Alert....and click OK.

If this post helps click Yes
---------------
Jacob Skaria


"Link" wrote:

In a worksheet where you have to fill in information what formula to use if
you want to make sure (example cell A1 is filled in before A2) In other words
they if A1 is not filled in you cant move to A2.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Entering information

You need to apply this for each worksheet.
--
If this post helps click Yes
---------------
Jacob Skaria


"Link" wrote:


Hi Jacob,
The formula worked for one worksheet, but the other one already have a data
validation formula and it did not worked. Any other suggestion?
"Jacob Skaria" wrote:

To make sure A1 is filled before A2

1. Select A2

2. Enter the below formula in DataValidationCustom and uncheck Ignore blank
=$A$1<""

3. Enter an error message say "Cells A1 should be entered firts" in Data
ValidationError Alert....and click OK.

If this post helps click Yes
---------------
Jacob Skaria


"Link" wrote:

In a worksheet where you have to fill in information what formula to use if
you want to make sure (example cell A1 is filled in before A2) In other words
they if A1 is not filled in you cant move to A2.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Entering information

You need to apply this for each worksheet.
--
If this post helps click Yes
---------------
Jacob Skaria


"Link" wrote:


Hi Jacob,
The formula worked for one worksheet, but the other one already have a data
validation formula and it did not worked. Any other suggestion?
"Jacob Skaria" wrote:

To make sure A1 is filled before A2

1. Select A2

2. Enter the below formula in DataValidationCustom and uncheck Ignore blank
=$A$1<""

3. Enter an error message say "Cells A1 should be entered firts" in Data
ValidationError Alert....and click OK.

If this post helps click Yes
---------------
Jacob Skaria


"Link" wrote:

In a worksheet where you have to fill in information what formula to use if
you want to make sure (example cell A1 is filled in before A2) In other words
they if A1 is not filled in you cant move to A2.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Entering information

use the sheet's change method ....right click the sheet tab and select View
Code from the pop-up menu

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("a2").Address Then
If Range("a1") = "" Then
MsgBox "A1 is empty"
Application.EnableEvents = False
Target.Value = ""
Application.EnableEvents = True
End If
End If
End Sub


"Link" wrote in message
...
In a worksheet where you have to fill in information what formula to use
if
you want to make sure (example cell A1 is filled in before A2) In other
words
they if A1 is not filled in you cant move to A2.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Entering information

I am confused. After I click on view code where do I type all this information?

"Patrick Molloy" wrote:

use the sheet's change method ....right click the sheet tab and select View
Code from the pop-up menu

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("a2").Address Then
If Range("a1") = "" Then
MsgBox "A1 is empty"
Application.EnableEvents = False
Target.Value = ""
Application.EnableEvents = True
End If
End If
End Sub


"Link" wrote in message
...
In a worksheet where you have to fill in information what formula to use
if
you want to make sure (example cell A1 is filled in before A2) In other
words
they if A1 is not filled in you cant move to A2.


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
how do I populate a cell when entering information into another? Netty Excel Discussion (Misc queries) 1 February 4th 10 04:35 AM
Automatic entering of information from another worksheet if given leigh10427 Excel Worksheet Functions 0 February 12th 09 02:28 PM
Entering Information Into Another Column Té Excel Discussion (Misc queries) 2 June 25th 08 05:16 PM
Entering information from 1 worksheet to another, if criteria is m Victoria Excel Discussion (Misc queries) 8 May 22nd 06 02:47 AM
Entering Excel information into MS Word dwalsh77 Excel Discussion (Misc queries) 0 April 8th 05 05:29 PM


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