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

Is that in the 'Sale' sheet code module ? and also, change this line

If Target.Address = "sale!$P$2" Then

to this

If Target.Address = "$P$2" Then

--
Regards,

Juan Pablo González

"Choice" wrote in message
...
Still not working, this is exactly what i have in there. when i go to

Sale!P2...type in a number nothing happens

Private Sub Worksheet_Change(ByVal Target As Range)
Dim ans
If Target.Address = "sale!$P$2" Then
If WorksheetFunction.CountIf(Range("Tracking!C4:C100" ),

Range("Sale!P2")) 0 Then

ans = MsgBox("Continue", vbYesNo)
If ans = vbYes Then Application.Run (SortTracker)
End If
End If

End Sub



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default code doesnt work

Also, save and close your workbook to get event code to activat

----- Juan Pablo Gonzalez wrote: ----

Is that in the 'Sale' sheet code module ? and also, change this lin

If Target.Address = "sale!$P$2" The

to thi

If Target.Address = "$P$2" The

--
Regards

Juan Pablo Gonzále

"Choice" wrote in messag
..
Still not working, this is exactly what i have in there. when i go t

Sale!P2...type in a number nothing happen
Private Sub Worksheet_Change(ByVal Target As Range

Dim an
If Target.Address = "sale!$P$2" The
If WorksheetFunction.CountIf(Range("Tracking!C4:C100" )

Range("Sale!P2")) 0 The
ans = MsgBox("Continue", vbYesNo

If ans = vbYes Then Application.Run (SortTracker
End I
End I
End Su




Reply
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
Why doesnt this work steve New Users to Excel 1 March 3rd 08 04:52 PM
COUNTIF doesnt work! jjj Excel Worksheet Functions 2 September 30th 05 02:38 AM
Formula doesnt work Kevin Excel Worksheet Functions 2 February 24th 05 12:57 AM
code doesnt work Juan Pablo Gonzalez Excel Programming 0 April 23rd 04 09:19 PM


All times are GMT +1. The time now is 08:21 PM.

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

About Us

"It's about Microsoft Excel"