[AccessD] Automation Error

Stuart McLachlan stuart at lexacorp.com.pg
Thu Aug 24 19:32:50 CDT 2023


On 24 Aug 2023 at 16:32, Rocky Smolin wrote:

> > > The code
> > >
> > >     'wordApp.Selection.FontName = "Book Antiqua"
> > >     'wordApp.Selection.Font.Size = 18
> > >     'wordApp.Selection.ParagraphFormat.Alignment = 1
> > >
> > > won't compile. Says Object Won't Support this Property or Method.
> > >

That's because Selection doesn't have a Fontname property.
If does have a font property that has a name property.
i.e. you are missing a dot. Try

wordApp.Selection.Font.Name = "Book Antiqua"




More information about the AccessD mailing list