Remove code from file after running
Posted by Coreen on February 13, 2001 11:59 AM
I have a file with the following code that runs upon opening.
Private Sub Workbook_Open()
Application.ScreenUpdating = False
Range("A17").Value = "Issue Date: " & Date
Range("A19").Select
Application.Dialogs(xlDialogSaveAs).Show
End Sub
Is there some way to automatically delete this after it finishes running or on close or on save? I don't want to change the date and be prompted to save every time I open the file. (I am currently manually deleting.)
Thank you,
Coreen