ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   HOW DO I FORMAT A CELL IN EXCEL TO PICK CURRENT SYSTEM DATE (https://www.excelbanter.com/excel-programming/395770-how-do-i-format-cell-excel-pick-current-system-date.html)

mechi

HOW DO I FORMAT A CELL IN EXCEL TO PICK CURRENT SYSTEM DATE
 
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


reklamo

HOW DO I FORMAT A CELL IN EXCEL TO PICK CURRENT SYSTEM DATE
 
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

"mechi" wrote:

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


Dave Peterson

HOW DO I FORMAT A CELL IN EXCEL TO PICK CURRENT SYSTEM DATE
 
with activesheet.range("A1")
.numberformat = "mm/dd/yyyy"
.value = date
end with

now will include the time.

mechi wrote:

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


--

Dave Peterson


All times are GMT +1. The time now is 01:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com