I have a date column (C) and a series of columns that users add information into. Usually one row at a time. I've created a Worksheet Module that runs when the value in column (G) is updated (it changes the value in column C to equal Now())
Private Sub Worksheet_Change(ByVal areaOfInterest As Range)
' This is for the auto inputed date that apears in Column C after updating information in Column D
' This defines which column activates the action
If areaOfInterest.Column = 7 Then
' This defines which rows are active
If areaOfInterest.Row > 3 Then
' This sets which cell "relative the activation cell" gets changed and to what
areaOfInterest.Offset(0, -4) = Now
' This sets the fomat for the cell that gets changed
' areaOfInterest.Offset(0, -2).NumberFormat = "ddd"
End If
End If
End Sub
This works fine until someone wants to Copy and Past information into column G. Actual Copy/past works too but only if the information being coped/pasted is one column wide. If the information being pasted is two columns wide then two columns get updated (C & D get's updated with a date). And this continues for each additional column width pasted in to the cell in column G (One row but 5 columns of info pasted in column G and the current date is updated for the same row in columns C,D,E,F,G).
What I want is to be able to past several columns worth of information into the cell in column G and have only the cell in column C update.
It would be nice if:
1) you could copy/past one row or several rows of information at the same time and have each row that info is entered in to for column G get today's date updated in column C.
2) If there was a date already entered in column C that the value was not updated.
Thanks in advance!
Private Sub Worksheet_Change(ByVal areaOfInterest As Range)
' This is for the auto inputed date that apears in Column C after updating information in Column D
' This defines which column activates the action
If areaOfInterest.Column = 7 Then
' This defines which rows are active
If areaOfInterest.Row > 3 Then
' This sets which cell "relative the activation cell" gets changed and to what
areaOfInterest.Offset(0, -4) = Now
' This sets the fomat for the cell that gets changed
' areaOfInterest.Offset(0, -2).NumberFormat = "ddd"
End If
End If
End Sub
This works fine until someone wants to Copy and Past information into column G. Actual Copy/past works too but only if the information being coped/pasted is one column wide. If the information being pasted is two columns wide then two columns get updated (C & D get's updated with a date). And this continues for each additional column width pasted in to the cell in column G (One row but 5 columns of info pasted in column G and the current date is updated for the same row in columns C,D,E,F,G).
What I want is to be able to past several columns worth of information into the cell in column G and have only the cell in column C update.
It would be nice if:
1) you could copy/past one row or several rows of information at the same time and have each row that info is entered in to for column G get today's date updated in column C.
2) If there was a date already entered in column C that the value was not updated.
Thanks in advance!