Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    16

    font of word bookmarks

    Hi i am inserting text from access into a word.doc And I need it to be a certain font color



    With objWord.ActiveDocument.Bookmarks
    ActiveDocument.Bookmarks_ ("A").Range.Font.Shading.BackgroundPatternColor = wdColorBlue
    .Item("A").range.Text = "test"
    End With

    This doesn't work, anyone familiar with this font stuff

  2. #2
    StepUP is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Dec 2005
    Posts
    99
    Why are you referencing the Bookmarks collection?

    The best way to do this is to go into Word and record a macro. Then copy the code from the macro. For example:

    ActiveDocument.Range.Font.Color = wdColorBlue

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Changing font color based on criteria
    By Pattie Weaver in forum Reports
    Replies: 5
    Last Post: 11-02-2010, 03:38 PM
  2. Word document INTO Access form
    By jonathonhicks in forum Forms
    Replies: 0
    Last Post: 04-30-2007, 05:59 PM
  3. create word documet for each record
    By datto in forum Programming
    Replies: 0
    Last Post: 02-11-2007, 06:57 AM
  4. line skip in bookmarks
    By emilylu3 in forum Programming
    Replies: 0
    Last Post: 03-21-2006, 02:58 PM
  5. How do I specify a version of Word using CreateObject?
    By TrevorOlding in forum Programming
    Replies: 1
    Last Post: 03-17-2006, 12:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums