[AccessD] OLE Word Doc Font

DJK(John) Robinson djkr at msn.com
Fri Apr 11 16:08:05 CDT 2008


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





More information about the AccessD mailing list