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

I am trying to do the following:
(this is a time ticket with time codes and hours)

In cell A1 you enter the time code (reg,vac or sic) and then in A2 thru A8
you enter hours worked.
If you enter a number in cells A2 thru A8 and have not entered a proper time
code, then the "Error Alert" message will pop up prompting for a time code.

Is this possible?
Thanks in advance
Kenny




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Data Validation Question

Put the following in the worksheet's code module.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim str1 As String

If Target.Column = 1 And Target.Row 1 And _
Target.Row < 9 And Range("A1") = "" Then
str1 = InputBox("Enter a time code (reg, vac or sic).")
Range("A1") = str1
End If
End Sub

HTH,
Merjet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Data Validation Question


The following website should help you in setting up the 3rd drop-dow
box - where the items are dependant on your selection in your 2n
drop-down.


http://www.contextures.com/xlDataVal02.html

Pau

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

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 Question NFL Excel Discussion (Misc queries) 2 June 23rd 09 07:03 PM
Data Validation Question DonkeyKong Excel Discussion (Misc queries) 4 December 29th 08 07:10 PM
Data Validation question ozhunter Excel Discussion (Misc queries) 3 December 16th 08 12:25 AM
Another Data Validation question Nigel Excel Discussion (Misc queries) 3 October 14th 05 10:37 PM
Data validation question Gareth[_3_] Excel Programming 2 September 8th 03 10:13 PM


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