Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This might be better in the tracking worksheet
Private Sub Worksheet_Change(ByVal Target As Range) Dim ans If Target.Address = "$A$1" Then If WorksheetFunction.CountIf(Range("C4:C100"), Range("Sale!P2")) 0 Then ans = MsgBox("Continue", vbYesNo) If ans = vbYes Then macro1 End If End If End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... Put it in a worksheet change event Private Sub Worksheet_Change(ByVal Target As Range) Dim ans If Target.Address = "$A$1" Then If WorksheetFunction.CountIf(Range("C1:C100"), Range("A1")) 0 Then ans = MsgBox("Continue", vbYesNo) If ans = vbYes Then macro1 End If End If End Sub right-click on the sheet tab, select View Code, and paste it in -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "choice" wrote in message ... This is what i put in but nothing seems to be working, im not sure if i am supposed to change anything with the worksheet function Dim ans If WorksheetFunction.CountIf(Range("Tracking!C4:C1000 "), Range("Sale!P2")) 0 Then ans = MsgBox("Please Enter in Tracker", vbYesNo) If ans = vbYes Then SortTracker End If |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
custom data validation on cells with data validation values | Excel Worksheet Functions | |||
Validation Data using Validation Table cell range..... | Excel Discussion (Misc queries) | |||
data validation invalid in dynamic validation list | Excel Discussion (Misc queries) | |||
data validation invalid in dynamic validation list | Excel Worksheet Functions | |||
Data validation with validation lists and combo boxs | Excel Discussion (Misc queries) |