access word report using vba

DevAccess

Registered User.
Local time
Today, 14:28
Joined
Jun 27, 2016
Messages
321
Hello,

I am trying following to make IndentLevel to my paragraph, paragraph has more then 1000 char in it.

***************code***********************************
Set Opara3 = wddoc.Content.Paragraphs.Add
With Opara3.Range
.InsertParagraphAfter
.Text = "some text with paragarph more then 1000 char"



.ParagraphFormat.Alignment = 0

.IndentLevel = 2
With .Font
.Name = "Verdana"
.Size = "9"
'.Bold = True
End With
End With

but thhis does not work and gives error at .IndentLevel = 2
---------------------------
Microsoft Access
---------------------------
Object doesn't support this property or method
---------------------------
OK
---------------------------
"object does not support this property.

Please advice
 

Users who are viewing this thread

Back
Top Bottom