PC Review


Reply
 
 
Curt
Guest
Posts: n/a
 
      25th Feb 2009
If target.column = 12 And target.Value > 0 And IsNumeric(target.Value) Then _
Call Pledge(target)
When entry is made in column 12 object is to have entry in column 16 = 0
This is called from entry in column 12 however nothing happens.

Public Sub Pledge(ByVal target As range)
Dim column As Variable
Sheets("Data").Select
If target.column = 16 Then _
target.Value = 0
End Sub
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      25th Feb 2009
Curt,

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Target.Column = 12 And _
Target.Value > 0 And _
IsNumeric(Target.Value) Then Pledge Target
End Sub
Public Sub Pledge(ByRef Target As Range)
Sheets("Data").Cells(Target.Cells(1).Row, 16).Value = 0
End Sub

HTH,
Bernie
MS Excel MVP


"Curt" <(E-Mail Removed)> wrote in message
news:577D81B4-E5FA-4F39-89FC-(E-Mail Removed)...
> If target.column = 12 And target.Value > 0 And IsNumeric(target.Value)
> Then _
> Call Pledge(target)
> When entry is made in column 12 object is to have entry in column 16 = 0
> This is called from entry in column 12 however nothing happens.
>
> Public Sub Pledge(ByVal target As range)
> Dim column As Variable
> Sheets("Data").Select
> If target.column = 16 Then _
> target.Value = 0
> End Sub


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.