Time Log & Text Allignment

M

Matrix

Hello!
I am trying to make a time log in Word 2007 where the entry is not a
sequential series of times. In Word 2003, this was done as follows:

0024-(space)(space)first line of text.......
2nd line of text............(enter)(enter)

and it would format it like this:

24- first line of text......
2nd line of text.....

The next entry might be:

1023- this line now
this line next

Two questions:
1st, I cannot seem to be able to get Word 2007 to create the time entry as a
style or format.

2nd, I cannot seem to figure out how to get the text alligned when I hit
enter twice.

Any help would be appreciated!
 
S

Suzanne S. Barnhill

First of all, you don't want to have to press Enter twice. You create your
style with a hanging indent where you want the second line to start and
enough Spacing After to create the appearance of a blank line. Then you
either let the entry wrap to the second line naturally or, if you want an
artificial break, press Shift+Enter to insert a line break. To end the
paragraph you press Enter once. Your new paragraph will begin flush left. If
you want the part of the first line following the number to align with the
runover text, press Tab after the number (usually a tab stop will
automatically be set at the position of your hanging indent).

The Normal style in Word 2007 by default has 10 pts Spacing After. This,
combined with the 1.15 line spacing will give you the equivalent of at least
12 points Spacing After, which should be adequate. The built-in List style
could be adapted to your purposes (it has a 0.25" hanging indent by default,
but you could change this), but by default it is formatted as "Don't add
space between paragraphs of the same style," which means you'd have to
change two things about it, so you might as well start with a brand-new
style based on Normal.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Graham Mayor

For a start you should never 'hit enter twice'. Always use space between
paragraphs. It makes re-editing the document far simpler.

Create a hanging indent paragraph style - call it Time Log if you wish -
with about 18 points of space after and sufficient hanging indent to align
your text after the time.. Then with that style applied Enter the 'time,
then tab then enter the text. Press Enter once to enter the next timed line.

If you want Word to add the current time (i.e. the log is created in real
time) then having created the style "Time Log", use the following macro
attached to a QAT button or keyboard shortcut to format the paragraph at the
cursor, insert the current time and tab to the first text position. If the
paragraph already has text, the time is added to the start of the paragraph
and the cursor remains in the same place.

Sub TimeLog()
Dim sNum As Long
With Selection
sNum = Len(.Paragraphs(1).Range)
With .Paragraphs(1).Range
.Collapse wdCollapseStart
.Style = "Time Log"
.InsertDateTime DateTimeFormat:="HH:mm" & vbTab, _
InsertAsField:=False
End With
If sNum = 1 Then
.EndKey
End If
End With
End Sub

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


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top