ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date macro (https://www.excelbanter.com/excel-programming/296081-date-macro.html)

james

Date macro
 
how do i use a maco to date a doc with today's date, which
will not be updated in the future, unless the macoo is run
agaain?

Don Guillett[_4_]

Date macro
 
sub setdate
range("a1")=date
end sub

--
Don Guillett
SalesAid Software

"james" wrote in message
...
how do i use a maco to date a doc with today's date, which
will not be updated in the future, unless the macoo is run
agaain?




Jerome_t

Date macro
 

-----Original Message-----
how do i use a maco to date a doc with today's date,

which
will not be updated in the future, unless the macoo is

run
agaain?
.

Macro to Run:
sub toto()
Range("A1") = Date
Range("A2") = Time
end sub


Bob Phillips[_6_]

Date macro
 
Sub InsertDate
Range("A1") = Format(Date,"dd mmm yyyy")
End Sub

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"james" wrote in message
...
how do i use a maco to date a doc with today's date, which
will not be updated in the future, unless the macoo is run
agaain?





All times are GMT +1. The time now is 11:35 PM.

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