#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Date Macro in_trouble Excel Discussion (Misc queries) 2 March 28th 07 03:06 AM
2 different ?'s: Date? Macro? RS Excel Worksheet Functions 11 November 2nd 06 11:53 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
A macro for the today's date...not the current date abxy[_18_] Excel Programming 7 February 8th 04 11:05 PM


All times are GMT +1. The time now is 02:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"