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

Hell
In Col E I have equipment list, in Col F I have equipment status with data validation, and in Col G I have status explanation. For select equipment status ie., x,y, or z ....I would like the explanation to be required. E.g., Once I enter status X, pop up displays "Please enter a valid explanation" How do I accomplish this
Thank

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Required fields

Right click on the sheet tab and select view code. Paste in code like this:

Private Sub Worksheet_Change(ByVal Target As Range)
if Target.count 1 then exit sub
if Target.column = 5 then
if isempty(cells(target.row,6)) then
msgbox "Please enter an explanation"
end if
End if
End Sub

this will work in xl2000 and later. In Excel 97, it will only work if the
source list for your data validation is entered in the list textbox

--
Regards,
Tom Ogilvy

"Lupe" wrote in message
...
Hello
In Col E I have equipment list, in Col F I have equipment status with data

validation, and in Col G I have status explanation. For select equipment
status ie., x,y, or z ....I would like the explanation to be required.
E.g., Once I enter status X, pop up displays "Please enter a valid
explanation" How do I accomplish this?
Thanks



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
Required fields in Excel [email protected] New Users to Excel 5 November 4th 10 05:33 PM
how to have fields to be required Mandatory fields in Excel Excel Worksheet Functions 1 June 6th 08 10:41 PM
Required fields with comments Cathy Landry Excel Worksheet Functions 0 August 19th 05 06:18 PM
highlighting required fields maryann Excel Worksheet Functions 2 June 23rd 05 06:16 PM
Required fields Emily Excel Discussion (Misc queries) 1 June 23rd 05 12:59 AM


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

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"