Timestamp a sheet

  • Thread starter Thread starter eluehmann
  • Start date Start date
E

eluehmann

Yes... what I need is something that inserts a string but that does no
touch it again... ever. I figure I can use en option box to ask th
user if (s)he wants to update the date. If they say no end sub if the
say yes then go through with the date change. This seems to be mor
complicated then I first thought
 
How about something like this then

Private Sub Workbook_Open()
If Sheets("sheet1").Range("A1").Value = "" _
Then Sheets("sheet1").Range("A1") = Date

Msg = "Do you want to change the data in cell A1 to today's date ?"
Title = "Change Date ?"
Response = MsgBox(Msg, vbYesNo + vbQuestion, Title)

If Response = vbNo Then
Exit Sub
End If

Sheets("sheet1").Range("A1") = Date

End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top