Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
spacetiger spacetiger is offline
external usenet poster
 
Posts: 2
Default change entered information to time

I think this is simple but for the life of me i cannot find what i'm looking
for, I am trying to make a templet for phone messages. I have a Time field
with text box and a date field with text box. I do not need the current time
entered in the time box usually, I want to know how to make it so that if i
type 1245 it will auto change to 12:45 and a date to go from 081807 to auto
format to 8/18/07 and if you want to get even further with it i have a notes
text box that i need to have several lines on but when i type into the box it
does not go to the next line... i'm a beginner with this any help will be
most appreciated
Thanks!
  #2   Report Post  
Posted to microsoft.public.word.newusers
spacetiger spacetiger is offline
external usenet poster
 
Posts: 2
Default change entered information to time


Ok, dont really know how i did it but i got the text to wrap correctly in
the text box. so only thing left is the date/time issue. Thanks all!


"spacetiger" wrote:

I think this is simple but for the life of me i cannot find what i'm looking
for, I am trying to make a templet for phone messages. I have a Time field
with text box and a date field with text box. I do not need the current time
entered in the time box usually, I want to know how to make it so that if i
type 1245 it will auto change to 12:45 and a date to go from 081807 to auto
format to 8/18/07 and if you want to get even further with it i have a notes
text box that i need to have several lines on but when i type into the box it
does not go to the next line... i'm a beginner with this any help will be
most appreciated
Thanks!

  #3   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default change entered information to time

It would make more sense (if I understand your requirement correctly) to
insert the current time and or date in the document with a macro. You can
then format it any way you want. Word does not take numbers and format them
into dates automatically.

eg

Sub InsertMsgTime()
With Selection
.InsertDateTime DateTimeFormat:="hh:mm", InsertAsField:=False
End With
End Sub

will insert the current time (as text)

Sub InsertUSFormatDate()
With Selection
.InsertDateTime DateTimeFormat:="MM/dd/yyyy", InsertAsField:=False
End With
End Sub

will insert the current date (as text) of combine them

..InsertDateTime DateTimeFormat:="dd/MM/yy hh:mm", InsertAsField:=False

http://www.gmayor.com/installing_macro.htm

The alternative is to use a protected form with date fields (not with the
current data or time set). You need to fill the fields with the current time
and date so they remain editable. You do this by saving the locked form as a
template and creating new documents from it. Assuming that the date goes in
field Text1 and the time in field Text2, add the following macro to the form
template:

Sub AutoNew()
Dim oFld As FormFields
Set oFld = ActiveDocument.FormFields
oFld("Text1").Result = Format(Date, "MM/dd/yy")
oFld("Text2").Result = Format(Time, "HH,mm")
oFld("Text1").Select
End Sub

Don't use text boxes for the body text. Either type in the body of the
document, of in the case of a form, insert a text form field. If you need it
in a box, use a table cell.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org






spacetiger wrote:
I think this is simple but for the life of me i cannot find what i'm
looking for, I am trying to make a templet for phone messages. I have
a Time field with text box and a date field with text box. I do not
need the current time entered in the time box usually, I want to know
how to make it so that if i type 1245 it will auto change to 12:45
and a date to go from 081807 to auto format to 8/18/07 and if you
want to get even further with it i have a notes text box that i need
to have several lines on but when i type into the box it does not go
to the next line... i'm a beginner with this any help will be most
appreciated
Thanks!



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop up box that entered information throughout whole document (urg Natalie Microsoft Word Help 1 December 5th 06 06:23 AM
Can I change license organization information in Word? Zorcon Microsoft Word Help 1 February 9th 06 04:22 AM
How can I change lable information in an existing document Babsy Microsoft Word Help 1 October 26th 05 07:19 PM
change personal information reviewer track changes? Wolo Microsoft Word Help 2 April 21st 05 10:56 PM
Remove revision number and editing time information from Word documents ... Suzanne S. Barnhill Microsoft Word Help 1 February 12th 05 09:38 AM


All times are GMT +1. The time now is 05:26 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"