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

Can anyone tell me if my order of code is problem The first if sets the value
of target to 10.
When I tried the CopymailE code things work sporatic. CpoymailE needs to
work from this sheet. This sheet has all entries for parade. Have two other
copycode I want to run to build other sheets. Am I putting to much in this
worksheet? Following is code I am useing. You will notice I have ' out the
CopymailE
Would you advise I try to devolpe userforms for input. Haven't done that yet
but willing to learn.
Thanks to everyone


Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range, rng1 As Range
On Error GoTo errhandler
Application.EnableEvents = False
If Target.Count 1 Then Exit Sub
If Target.Column = 12 And Target.Value 10 And IsNumeric(Target.Value) Then
Call CopyDonors(Target)
Target.Value = 10
End If
If Target.Column = (12) And Target.Value <= 0 And Not IsEmpty(Target) Then
Call Copycomp(Target)
End If
'If Target.Column = (12) And Target.Value = 10 And IsNumeric(Target.Value)
Then
' Call CopymailE(Target)
'End If
'If Target.Column = (12) And Target.Value = 10 And Not IsEmpty(Target) Then
' Call CopymailE(Target)
'End If
If Target.Column = 12 And Target.Row 1 Then
Set rng1 = Range(Cells(2, 12), Target)
On Error Resume Next
Set rng1 = rng.SpecialCells(xlBlanks)
On Error GoTo 0
If Not rng1 Is Nothing Then
rng1(1).Select
MsgBox "Please enter amount"
End If
End If
Application.EnableEvents = True
Exit Sub
errhandler:
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
Placement of code Hank Youngerman Excel Programming 3 November 17th 06 05:06 PM
Code running order Santiago[_3_] Excel Programming 2 September 15th 05 02:06 PM
Custom button, code placement el_peacock Excel Programming 2 December 13th 04 04:30 PM
Placement of Code Phil Hageman[_3_] Excel Programming 7 January 30th 04 02:06 PM
setting tab order by code dlrauh Excel Programming 1 October 25th 03 08:38 PM


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