Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Display date and time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Crowbar - 06 Jan 2006 19:39 GMT
Hi

Im new at using VB in word so don't laugh

Can I use something like =now() to display the date and time within Word?

I can only use Excel properly at the moment
William - 06 Jan 2006 20:41 GMT
hi, you can also type in 'date or time' in VBA Help for more info. good luck.

Dim Today
Today = Now    ' Assign current system date and time.

Signature

 

> Hi
>
[quoted text clipped - 3 lines]
>
> I can only use Excel properly at the moment
Perry - 06 Jan 2006 20:42 GMT
From the Word GUI menu option: Insert | Date and Time
or
From the Word GUI menu option: Insert | Field
Next dialog, choose: CreateDate (from the dropdown)
or
From the Word GUI menu option: Insert | Field
Next dialog, choose: Date (from the dropdown)

Or insert a PrintDate field using a (recorded) macro:

   Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:=
_
       "PRINTDATE  ", PreserveFormatting:=True

Krgrds,
Perry

> Hi
>
[quoted text clipped - 3 lines]
>
> I can only use Excel properly at the moment
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.