R
Radio848
Hi Guys & Gals:
John provided me with the enclosed macro, (I have made modifications, so the
problem isn't his fault)
Problem: I can only get the enclosed to work on the first & last page.
There are a total of 42 pages. I've tried doing the "First Page" - "Last
Page", routine and that didn't work.
The enclosed is supposed to be put in "This Workbook" module. It needs to
make the date/time entry on each page at the given offset address.
What am I doing wrong?
Thanks!!
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Left(ActiveSheet.Name, 42) = "4.04" Or Left(ActiveSheet.Name, 42) =
"3.07" Then
If Not Intersect(Target, Range("i8:i46")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
If Target.Value <> "" Then
If Target.Offset(0, 5) = "" Then
Target.Offset(0, 5) = Now
End If
Else
Target.Offset(0, 5) = ""
End If
End If
End If
End Sub
John provided me with the enclosed macro, (I have made modifications, so the
problem isn't his fault)
Problem: I can only get the enclosed to work on the first & last page.
There are a total of 42 pages. I've tried doing the "First Page" - "Last
Page", routine and that didn't work.
The enclosed is supposed to be put in "This Workbook" module. It needs to
make the date/time entry on each page at the given offset address.
What am I doing wrong?
Thanks!!
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Left(ActiveSheet.Name, 42) = "4.04" Or Left(ActiveSheet.Name, 42) =
"3.07" Then
If Not Intersect(Target, Range("i8:i46")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
If Target.Value <> "" Then
If Target.Offset(0, 5) = "" Then
Target.Offset(0, 5) = Now
End If
Else
Target.Offset(0, 5) = ""
End If
End If
End If
End Sub