o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

so far no one has been able to help -

i'm using VB 6.0 to open word and create a new
document. in the document i need to center some of the
text but VB doesn't recognize the word constant wdAlignParagraphCenter

i'm using the following code and it isn't working:
Set FormsList = CreateObject("word.application")
FormsList.documents.Add
FormsList.ActiveDocument.pagesetup.topmargin = 36
FormsList.ActiveDocument.pagesetup.leftmargin = 36
FormsList.ActiveDocument.pagesetup.rightmargin = 36
FormsList.ActiveDocument.pagesetup.bottommargin = 36
FormsList.selection.Font.Name = "Arial"
FormsList.selection.Font.Size = 14
FormsList.ActiveDocument.Paragraphs(1).Alignment = wdAlignParagraphCenter
FormsList.selection.Font.Bold = True
FormsList.selection.Font.Underline = True
FormsList.selection.typetext strPolicyType & vbCr & vbCr

Any help would be very much appreciated
TIA
Ted