[AccessD] Automation Error
Susan Harkins
ssharkins at gmail.com
Fri Aug 25 08:24:13 CDT 2023
A chat box geared toward code would probably find something like this when you don't have Stuart available. 😉
Susan H.
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