PC Review


Reply
Thread Tools Rate Thread

change event doesnt work

 
 
=?Utf-8?B?Sm9uYXRoYW4=?=
Guest
Posts: n/a
 
      31st Jul 2007
Thanks a lot for Joel last time providing me the following codes, but what I
have is DDE links which seems dont trigger the the change event, wonder
whether there is other way to realise it.

Thanks in advance

Sub worksheet_change(ByVal Target As Range)
Application.EnableEvents = False

Call common_code(Target)
Application.EnableEvents = True

End Sub

Sub common_code(ByVal Target As Range)
If (Target.Row >= 5) And (Target.Row <= 7) And _
(Target.Column >= 2) And (Target.Column <= 7) Then

Range("B5:G7").Copy
Set myCell = Cells(Rows.Count, 2).End(xlUp)(2)
myCell.PasteSpecial _
Paste:=xlPasteValues
With myCell.Offset(0, -1).Resize(3)
.Value = Now
.NumberFormat = "mm/dd/yy hh:mm:ss"
End With
End If
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
style change tab doesnt work for color or fonts why? Nancy Suds Microsoft Word Document Management 1 30th Oct 2008 08:27 PM
Event Viewer System Properties Administrative Tools Doesnt Work Joe Microsoft Windows 2000 2 11th Oct 2006 02:45 PM
SelectedIndexChanged event of dropdownlist doesnt work =?Utf-8?B?bm91c2hh?= Microsoft C# .NET 1 6th Oct 2004 01:08 PM
converteventhandler - binding.format event doesnt work. =?Utf-8?B?U3JpcmFt?= Microsoft Dot NET Framework Forms 0 2nd Jul 2004 06:54 AM
media player stops a IE doesnt work restore doesnt work Dave Windows XP Performance 1 23rd May 2004 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:24 PM.