Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
2003 2007
What would the VBA Syntax to eliminate (from ChangeEvent) i.e. the addition of a Column within the Target Range? The issue is that all cells in that column would be populated eith a time/date stamp. Private Sub Worksheet_Change(ByVal Target As Excel.Range) ' ' Dim myCell As Range Dim myRange As Range Dim myTime As String myTime = Now() Set myRange = Range(Target.Address) With Application .EnableEvents = False .Screenupdating = False End with For Each myCell In myRange With Me.Cells(myCell.Row, "DZ") .NumberFormat = "mm/dd/yyyy hh:mm:ss" .Value = myTime End With Next myCell Range("DZ1").Value = "Date Last Update" With Application .ScreenUpdating = True .EnableEvents = True End with End Sub TIA EagleOne |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Blocking column insertion | Excel Programming | |||
Custom Context menu (Right click menu) not working in sheet changeevent. | Excel Programming | |||
ChangeEvent | Excel Programming | |||
Create event triggered by Pivot Chart field button | Excel Programming | |||
Text following an Outlook field insertion | Excel Programming |