Results 1 to 4 of 4
  1. #1
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Styles and Formatting - Select All (Word 2003 SP2)

    If I turn off Tools > Options > Keep track of formatting then the Select All button on the Styles and Formatting pane is greyed out. This is a nuisance as that Select All button can be very useful, so I sometimes turn on Keep Track of Formatting for a moment, click the Select All button, and then turn the option back off again.

    Ah, thinks Stuart, this is what Macros are for, I could record a Macro of me setting the option, clicking Select All, and clearing the option again. But, sadly, the Select All does not get recorded so I can't do that.

    Any other suggestions of how to get the Select All functionality without having to permanently enable Keep Track of Formatting?

    StuartR

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Styles and Formatting - Select All (Word 2003 SP2)

    Unfortunately, there is no support in the Word object model for creating and manipulating discontiguous selections: see INFO: Limited Programmatic Access to Word 2002 Discontiguous Selections (it hasn't changed in Word 2003).

    But .., WordBasic to the rescue, of all things:

    Options.FormatScanning = True
    WordBasic.SelectSimilarFormatting
    Options.FormatScanning = False

  3. #3
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Styles and Formatting - Select All (Word 2003 SP2)

    Hans,

    You never cease to amaze me - how on earth did you find that?

    StuartR

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Styles and Formatting - Select All (Word 2003 SP2)

    Using Google Groups <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

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