Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default triogger reset

trying to leave a 0.00 entry on sheet 1 all entry is done on this sheet. Have
most all working with the exception of the zero trigger. If i put the target
=10 above the call for copycomp fails to trigger. If I put it after it
changes the entry to (10). And call functions. Need to be able to make this
call and leave 0.00 entry in this trigger cell. This 0.00 entry can come at
any row level. Following is code from sheet 1 First three calls work fine.
Can it be reset to zero from comp worksheet?
Hope we can do it
Thanks in Advance
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
On Error GoTo errhandler
Application.EnableEvents = False
If Target.Column = 9 And Target.Value 1 And IsNumeric(Target.Value)
Then _
Call CopyMailE(Target)
If Target.Column = 12 And Target.Value 10 And IsNumeric(Target.Value)
Then _
Call CopyDonors(Target)
If Target.Column = 12 And Target.Value 10 And IsNumeric(Target.Value)
Then _
Call CopyMailD(Target)
If Target.Column = (12) And Target.Value <= 0 And
IsNumeric(Target.Value) Then _
Call Copycomp(Target)
If Target.Column = (12) Then _
Target.Value = 10
Application.EnableEvents = True
Exit Sub
errhandler:
Application.EnableEvents = True
End Sub

Public Sub Copycomp(ByVal Target As Range)
Dim wksSummary As Worksheet
Dim rngPaste As Range
Set wksSummary = Sheets("Comp")
Set rngPaste = wksSummary.Cells(65536, "A").End(xlUp).Offset(0, 0)
Application.EnableEvents = False
Set rngPaste = rngPaste.Offset(1, 0)
rngPaste = Range(Target.Offset(0, -7), Target.Offset(0, 0))
Range(Target.Offset(0, -7), Target.Offset(0, 0)).Copy _
Destination:=rngPaste
rngPaste.Offset(0, 7) = Target
Application.EnableEvents = True
End Sub
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
Tab Key reset DKSteph Excel Worksheet Functions 2 March 20th 09 07:20 PM
How do I reset the tab key? Saeanen Excel Discussion (Misc queries) 2 May 22nd 07 04:26 PM
how to reset form pywhacket Excel Worksheet Functions 1 March 17th 06 02:54 PM
reset to zero baldyheed Excel Worksheet Functions 3 October 2nd 05 03:30 AM
reset me cacique[_5_] Excel Programming 1 July 8th 05 02:54 AM


All times are GMT +1. The time now is 07:23 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"