Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone please explain why this little macro won't work?
TIA Len _____________ Dim Msg Private Sub Worksheet_Change(ByVal Target As Range) Msg = "You must NOT check your own work!" If Target.Column < 6 Or Target.Column < 9 Then Exit Sub If Target.Column = 6 And Target = Target.Offset(0, -1) Then MsgBox (Msg) End If If Target.Column = 9 And Target = Target.Offset(0, -2) Then MsgBox (Msg) End If End Sub ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to sum doesn't work | Excel Discussion (Misc queries) | |||
Macro to update a column in a work based on another work sheet | New Users to Excel | |||
Macro works Macro does not work | Excel Discussion (Misc queries) | |||
Why Won't This Macro Work? | Excel Discussion (Misc queries) | |||
how do you get (end down) to work in a macro? | Excel Worksheet Functions |