HOW DO I FORMAT A CELL IN EXCEL TO PICK CURRENT SYSTEM DATE

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am programming an excel worksheet in which i need a cell to me able to
display to me the current system date. That is anytime i access the file, the
cell should be able to pick the current date as at the day i am accessing it.

please help
 
Hi mechi

Write an Auo_Open macro that runs when you open the file. Write the
Date/Time in a cell you want to have it.
Example:

Sub Auto_Open()
Range("A1") = Now()
End Sub

Regards
reklamo
 
with activesheet.range("A1")
.numberformat = "mm/dd/yyyy"
.value = date
end with

now will include the time.
 

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