Results 1 to 2 of 2

Thread: text properties

  1. #1

    Thread Starter
    Lively Member rocket0612's Avatar
    Join Date
    Feb 2005
    Location
    Belfast, Northern Ireland
    Posts
    95

    Arrow text properties

    I am trying to insert bold text to word 97 using a macro from excel:

    Wrd.ActiveDocument.Fields(10).Select
    With Wrd.Selection
    .Font.Bold = wdToggle
    .InsertAfter Text:="HOW TO CONTACT US"
    End With

    However, the text when inserted is not being bolded, any suggestions?
    The Box Said: "You need Windows Vista or better" ... So I Installed LiNUX

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: text properties

    Get the range start position before you add the text.
    Add the text.
    Get the range end position (which is the start of the new one)
    Set the range
    Bold it.


    Something like that. Try putting the text in first then bolding it.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width