Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change not working when using paste
Hi all
Excel 2000 SP3 According to values input on a worksheet I am using the worksheet_Change event to launch some routines. When values are input manually on the worksheet the worksheet_Change event works OK When values are pasted on the worksheet this event does not work. Is there any way I can make the Worksheet_Change event work when I paste several values onto my worksheet? Here's part of my code: Private Sub Worksheet_Change(ByVal Target As Range) 'Saisie de données dans la plage des colonnes Catégorie à Ext Hor. If Not Intersect(Range(Target.Address), Range("H12:Q2012")) Is Nothing Then 'Copie des données pour le cas où la cat = 0... '... et nombre d'infos OK If Target.Row = 12 And Cells(Target.Row, 8).Value = 0 _ And Cells(Target.Row, 18).Value = True Then LigCatZero = Target.Row 'Message d'avertissement une seule fois Select Case Sheets("Saisie AVV").[A12] Case Is = "" MsgBox MsgCat0, vbInformation, TitreMsgCat0 AVVCopieCatZero Case Else AVVCopieCatZero End Select End If End If End Sub Thanks in advance for your help Regards Pascal |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet_Change not working when using paste
Only thing I can say is worksheet_change fires in Excel 2000 SR1 when I do a
paste. You have a lot of restrictions in your worksheet_change event - are you sure it isn't firing, but not passing the tests you have to show something. -- Regards, Tom Ogilvy "papou" <nspm_@_ wrote in message ... Hi all Excel 2000 SP3 According to values input on a worksheet I am using the worksheet_Change event to launch some routines. When values are input manually on the worksheet the worksheet_Change event works OK When values are pasted on the worksheet this event does not work. Is there any way I can make the Worksheet_Change event work when I paste several values onto my worksheet? Here's part of my code: Private Sub Worksheet_Change(ByVal Target As Range) 'Saisie de données dans la plage des colonnes Catégorie à Ext Hor. If Not Intersect(Range(Target.Address), Range("H12:Q2012")) Is Nothing Then 'Copie des données pour le cas où la cat = 0... '... et nombre d'infos OK If Target.Row = 12 And Cells(Target.Row, 8).Value = 0 _ And Cells(Target.Row, 18).Value = True Then LigCatZero = Target.Row 'Message d'avertissement une seule fois Select Case Sheets("Saisie AVV").[A12] Case Is = "" MsgBox MsgCat0, vbInformation, TitreMsgCat0 AVVCopieCatZero Case Else AVVCopieCatZero End Select End If End If End Sub Thanks in advance for your help Regards Pascal |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Paste and Paste Special No Longer Working - Excel 2003 | Excel Discussion (Misc queries) | |||
Paste special not working | Excel Discussion (Misc queries) | |||
Worksheet_Change Event Not Working | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming | |||
worksheet_change vs. calculate, and worksheet_change not running | Excel Programming |