[AccessD] Automation Error

Rocky Smolin rockysmolin2 at gmail.com
Fri Aug 25 10:27:29 CDT 2023


Stuart:  Thanks so much for that. Got me over the hump. Late Binding will
work.

Haven't figured out what the problem is yet with early binding and the
unregistered library. But workaround is a good as a solution.

Is there a link to the properties of the Word object? FontName without the
dot was how the Word macro generated the code.

Thanks again.

Rocky


On Thu, Aug 24, 2023 at 5:33 PM Stuart McLachlan <stuart at lexacorp.com.pg>
wrote:

> 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"
>
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>


More information about the AccessD mailing list