[AccessD] OLE Word Doc Font

Mark A Matte markamatte at hotmail.com
Fri Apr 11 16:18:00 CDT 2008


Thanks John...Its about beer:30 here...I will try first thing Monday.

Thanks,

Mark A. Matte


> From: djkr at msn.com
> To: accessd at databaseadvisors.com
> Date: Fri, 11 Apr 2008 22:08:05 +0100
> Subject: Re: [AccessD] OLE Word Doc Font
>
> Hi Mark
>
> Working a bit from memory and speculation ... I think highlighting isn't one
> of the class of things you mention relating to the font itself, but rather
> something applied on top of existing text, so for example:
>
> Selection.Range.HighlightColorIndex = wdYellow
>
> Does this help?
>
> John
>
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte
> Sent: 11 April 2008 21:04
> To: Access Developers discussion and problem solving
> Subject: [AccessD] OLE Word Doc Font
>
>
>
> Hello All,
>
> I am working with OLE MSWord Object on an access form. I'm trying to play
> with the font...'highlighting' specifically. I can change the
> size,color,bold...and stuff but looking for highlighting.
>
> There does not seem to be intellisense for these properties on my maching.
>
> Any thoughts?
>
> Thanks,
>
> Mark A. Matte
>
> Here is the type of code I'm using:
>
> *******************
> oDocument.Content.Select
> With oDocument.Application.Selection
>
> ' Add a heading at the top of the document...
> .Style = oDocument.Styles("Heading 1")
> .Font.Color = &HFF0000
> .TypeText T1
> .ParagraphFormat.Alignment = 1 '[wdAlignParagraphCenter]
> .TypeParagraph
> .TypeParagraph
> .Font.Bold = True
> .TypeText T2
>
> End With
> Set oDocument = Nothing
> ********************
>
>
> _________________________________________________________________
> Pack up or back up-use SkyDrive to transfer files or keep extra copies.
> Learn how.
> hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refres
> h_skydrive_packup_042008
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com

_________________________________________________________________
Going green? See the top 12 foods to eat organic.
http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653A



More information about the AccessD mailing list