Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone help?
I have the following code which works fine on 2000 but in work we have '97 and the sheet event doesn't fire when selecting items from a drop down valuidation list in column F. Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False On Error GoTo ws_exit If Target.Column = 6 Then If Target.Offset(0, -5).Value <= Worksheets("Sheet2").Range("A1").Value Then If Right(Target.Value, 1) = "^" Then MsgBox "Error, you must choose one without a roof on!" End If ElseIf Target.Offset(0, -5).Value Worksheets("Sheet2").Range("A1").Value Then If Right(Target.Value, 1) < "^" Then MsgBox "Error, you must choose one with a roof on!" End If End If End If ws_exit: Application.EnableEvents = True End Sub This check is very important, is there any other way to do it? Thanks in advance. Gareth |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
work book open _ event | Excel Worksheet Functions | |||
Event code won't work | Excel Discussion (Misc queries) | |||
App_change event to open all work book | Excel Discussion (Misc queries) | |||
Macro doesn't work when used as Workbook Open event | Excel Discussion (Misc queries) | |||
Change event fails to work | Excel Worksheet Functions |