I've got a workbook in which I'm hoping to automatically calculate the expiry date on initialization of the file.
My current logic in mind is as follows, but it's giving me an "Ambiguous Name" error message:
Private Sub Workbook_Open()
If Worksheet(1).Range("G30") Is Nothing Then
Range("G30").Value = Now + 120
On Error GoTo 0
End Sub
The workbook is designed to be updated as required, thus it will need to check whether a date stamp has already been marked on.
Would anyone have any suggestions in this case? Many thanks in advance!