LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default code doesnt work

Where did you put that macro ? its supposed to go in the 'Sale' sheet code
module, especifically in the Change event.

--
Regards,

Juan Pablo González

"choice" wrote in message
...
i have a list on Tracking!C4:C1000 (not sorted), i want when someone

enters a number in Sale!P2 a box to pop up if Sale!P2 is not in
Tracking!C4:C1000, the box will have 2 options yes or no, yes will run macro
"SortTracker", no will not do anything.

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



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesnt this work? MurrayBarn Excel Worksheet Functions 2 November 19th 09 04:21 PM
PASTE DOESNT WORK robin l Excel Worksheet Functions 9 April 18th 09 06:27 PM
Why doesnt shortcut key work on some but not on others? Craig Excel Discussion (Misc queries) 3 August 12th 08 03:20 PM
Why doesnt this work steve New Users to Excel 1 March 3rd 08 04:52 PM
Formula doesnt work Kevin Excel Worksheet Functions 2 February 24th 05 12:57 AM


All times are GMT +1. The time now is 03:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"