Greg
Sun May 28 12:04:05 CDT 2006
Include the non-breaking character in your format definition:
Sub Test()
Dim SDate As Date
SDate = Now
Selection.Range.InsertAfter _
Format(SDate, "mmmm" & Chr(160) & "dd," & Chr(160) & "yyyy")
End Sub
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
singeredel wrote:
> Is there a way to include a non-breaking space between the month and
> day in the following date format code so that the month and day do
> not separate when they appear at the end of a line?
>
> ScheduleDate1 = Format(ScheduleDate, "mmmm dd, yyyy")
>
> Thanks...