View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Heather M. Heather M. is offline
external usenet poster
 
Posts: 1
Default How to validate in code the contents of a cell?

I need to test the value in a cell that currently has
validation turned on values displayed in a
list (combo box)

The routine in VBA is as follows:
Private Sub Worksheet_SelectionChange(ByVal Target As
Excel.Range)
WorkID = ActiveCell().Text
If WorkID = "Flex" Then MsgBox "Please complete Flex-Time
Form"
End Sub

My problem is that it only fires when I leave the cell and
return back...How can I test the value in cell before, or
as, I get to the next cell?

This is Excel '97
Thanks,

Heather.