Controlled space

  • Thread starter Thread starter DeeDee
  • Start date Start date
D

DeeDee

I am using M S Windows Xp - Home Edition - 2002.
I don't want January at the end of one line and 2009 at the beginning of the
next. How do I keep them together.
 
Use a non-breaking space. E.g. if you insert the date with a macro, you
could use

Sub InsertUSFormatDate()
With Selection
.InsertDateTime DateTimeFormat:="MMMM" & Chr(160) & _
"d," & Chr(160) & "yyyy", InsertAsField:=False
End With
End Sub

or

Sub InsertUKFormatDate()
With Selection
.InsertDateTime DateTimeFormat:="d" & Chr(160) & _
"MMMM" & Chr(160) & "yyyy", InsertAsField:=False
End With
End Sub

or with a field use a switch e.g.

{ Date \@ "d MMMM yyyy" } with nonbreaking spaces (CTRL+SHIFT+Space) in the
switch.

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

My web site www.gmayor.com

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

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

Similar Threads


Back
Top