Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code not working
Phil,
Nothing can be assumed, you must spell every test out fully, and include Worksheet object, and the dot operator. IF Worksheets("A").[A1] < Worksheets("B").[M1] OR _ Worksheets("A").[A1] < Worksheets("B").[M2] or etc. -- HTH Bob Phillips "Phil Hageman" wrote in message ... Excel 2000 This module code is inteded to give the user a message when improper data is entered in either the Customer or Finance worksheet. It isn't working. The "If..." line is colored red. Sub On_Update() If (Worksheets("Customer")Or ("Finance")[M15] < [M16] Or [M47] < [M48] Or [M79] < [M80]) Then ' MsgBox "Target cannot be greater than Chart Max" End If End Sub Where am I going wrong? Thanks, Phil |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA Code Not Working | Excel Discussion (Misc queries) | |||
VBA Code Not Working | Excel Discussion (Misc queries) | |||
VB Code Is Not Working | Excel Discussion (Misc queries) | |||
Code not working and can't see why | Excel Discussion (Misc queries) | |||
For Each Code Not Working | Excel Programming |