Results 1 to 10 of 10
  1. #1
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Spell Checker (2000 / 2003)

    Hi,

    Is there a way of making the spell checker only check the specific pages entered by the user. Maybe via an inputbox

    Regards
    Kevin
    Regards
    Gerbil (AKA Kevin)

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

    Re: Spell Checker (2000 / 2003)

    You can mark parts of a document as "Do not check spelling or grammar" in Tools | Language | Set Language...

  3. #3
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checker (2000 / 2003)

    Thanks Hans,

    That certainly works as a quick fix.

    Is there a way to use a macro assigned to a button in the tool bar, the will ask the user what pages they want to select, run the spell check, and select 'no' when asked if they want to check the rest of the document.

    Many thanks
    Regards
    Gerbil (AKA Kevin)

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Spell Checker (2000 / 2003)

    Word's help file has this example of checking spelling within a particular document's second section. Converting this to recognize and set ranges on individual pages would be more work...

    <code>Set range2 = Documents("MyDocument.doc").Sections(2).Range
    range2.CheckSpelling IgnoreUpperCase:=False, _
    CustomDictionary:="MyWork.Dic", _
    CustomDictionary2:="MyTechnical.Dic"</code>

  5. #5
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checker (2000 / 2003)

    Many thanks, gives me something to work from.

    Thank you
    Regards
    Gerbil (AKA Kevin)

  6. #6
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checker (2000 / 2003)

    Thanks got it doing exactly what I want. Heres what I used

    Sub SpellCheckerByPage()
    Dim strPages As String

    strPages = InputBox("Enter the page number you want the spell checker to start from.", "SPELL CHECKER", , 4500, 3500)

    Set range2 = Documents(ActiveDocument).Sections(strPages).Range
    range2.CheckSpelling IgnoreUppercase:=False, _
    CustomDictionary:="CUSTOM.Dic"
    End Sub
    Regards
    Gerbil (AKA Kevin)

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Spell Checker (2000 / 2003)

    It looks as though you must have a separate section for each page. That does make it easy!

  8. #8
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checker (2000 / 2003)

    I do I use next page section breaks, as there are many letter within one document about the same client. I use the same method to print the first page on headed paper and the rest on blank. Thans to Hans for that piece of code.

    Thanks for your help, I sure am learning loads here.
    Regards
    Gerbil (AKA Kevin)

  9. #9
    3 Star Lounger
    Join Date
    Jul 2008
    Location
    Suffolk, United Kingdom
    Posts
    308
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checker (2000 / 2003)

    Hi,

    I have a problem with the code I have used to spell check by page. (See above) The problem is I am entering section numbers into the input box, when I actually wanted to enter page numbers, I only noticed when I came across a document with some single letters taking more than one page, so page 26 may only be section 20.

    Is there a way of either, it working with page numbers i.e: Spellcheck pages 24-26
    Or...
    Spellcheck from current section forward i.e: where mouse cursor is.

    Many thanks
    Regards
    Gerbil (AKA Kevin)

  10. #10
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Spell Checker (2000 / 2003)

    That's the part I said would be the hard part. <img src=/S/sad.gif border=0 alt=sad width=15 height=15>

    Check out the last chunk of code in this article: Select – or set a Range object – to the page that the cursor is on @ mvps.org. I'm not sure how it works if you have altered the continuous numbering, but if you have not, then it has a good chance of working.

Posting Permissions

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