Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how a msg pop up if user enter data in col A but forgot data col B

column A column B
123 788

if column A = blank, b=blank
if column A= non blank, b=blank = error
A message shuould appear & remind the user to key in data in B
if column A=blank, b=non blank = not acceptable
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default how a msg pop up if user enter data in col A but forgot data col B

You could use a worksheet.change event to do this, but it would require some
coding. Is that what you want?

"Celline" wrote:

column A column B
123 788

if column A = blank, b=blank
if column A= non blank, b=blank = error
A message shuould appear & remind the user to key in data in B
if column A=blank, b=non blank = not acceptable

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default how a msg pop up if user enter data in col A but forgot data col B


--
Thanks,
Shane Devenshire


"Celline" wrote:

column A column B
123 788

if column A = blank, b=blank
if column A= non blank, b=blank = error
A message shuould appear & remind the user to key in data in B
if column A=blank, b=non blank = not acceptable

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default how a msg pop up if user enter data in col A but forgot data col B

Well, I like that one, I click Post and it dump my entire post!

Let's try again.

1. You can set up a formula in column C, suppose the first data cells are
A2:B2 then the formula would be:
=IF(AND(A2<"",B2=""),"Enter something in column
B.",IF(AND(A2="",B2<""),"Not acceptable",""))

2. You could run a vba routine that would read:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim theRow As Long
Set isect = Application.Intersect(Target, Range("A2:B20"))
If Not isect Is Nothing Then
theRow = Target.Row
If Cells(theRow, 1) < "" And Cells(theRow, 2) = "" Then
MsgBox "You must enter something in cell: B" & theRow
ElseIf Cells(theRow, 2) < "" And Cells(theRow, 1) = "" Then
MsgBox "No acceptable"
End If
End If
End Sub

3. You could set up conditional formats on column A and B:

Column A: =AND(A2="",B2<"")
Column B: =AND(B2="",A2<"")

These are set up by selecting one column or the other and choosing Format,
Conditional Formatting, picking Formula is from the first drop down and
entering one of the formulas above. Then click the Format button and on the
patterns tab pick a color and click OK twice. Repeat the same process on the
other column using the second formula above.

--
Cheers,
Shane Devenshire


"Celline" wrote:

column A column B
123 788

if column A = blank, b=blank
if column A= non blank, b=blank = error
A message shuould appear & remind the user to key in data in B
if column A=blank, b=non blank = not acceptable

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default how a msg pop up if user enter data in col A but forgot data col B

hi

could you try Conditional formatting, in the Format menu.

--
______________
Regards,
Pugal.
______________


"Celline" wrote:

column A column B
123 788

if column A = blank, b=blank
if column A= non blank, b=blank = error
A message shuould appear & remind the user to key in data in B
if column A=blank, b=non blank = not acceptable

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
data validation list: how do i 'force' a user to enter data from the list? showsomeidnow Excel Discussion (Misc queries) 4 May 1st 07 05:49 PM
data validation list: how do i 'force' a user to enter data from the list? showsomeidnow Excel Discussion (Misc queries) 2 April 29th 07 11:09 PM
Force user to enter data in cell before moving to next cell Fusionmags New Users to Excel 3 November 19th 06 11:49 PM
ENTER DATA EXCELL SO RELATED DATA APPEARS VICKIO66 Excel Worksheet Functions 2 August 23rd 05 01:16 AM
enter data in cell which will start macro to move data to sheet2 Tommy Excel Discussion (Misc queries) 0 May 12th 05 05:00 PM


All times are GMT +1. The time now is 12:34 AM.

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

About Us

"It's about Microsoft Excel"