Results 1 to 10 of 10
  1. #1
    New Lounger
    Join Date
    May 2001
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Geoff,

    Thanks fcr your reply. The syntax error seemed to point to the second line of code: Sub RunSpellcheck()

    Thanks for the "sections" idea. The forms are so nicely designed now (if I do say so myself <g>) that I hate to have to redo all of them. Someone else suggested that I post to the microsoft newsgroups before I give up. So that's what I'll do.

    See you in June!

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Judith,

    To fill in for viewers, you're responding to <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=wrd&Number=36258&page=0 &view=expanded&sb=5#Post36258>this post</A>.

    And I'll post the first lines of the code which is causing the syntax error:
    <pre>Option Explicit

    Sub RunSpellcheck()

    Dim ProtectionType As Long, oDoc As Document, oSection As Section, _
    OriginalRange As Range

    'If no documents open, quit macro
    If Documents.Count = 0 Then
    Exit Sub
    End If

    Set oDoc = ActiveDocument
    Set OriginalRange = Selection.Range
    </pre>


    Usually, at least in Word 97/Word 2000 VBA, if there's a syntax error in a suroutine, the routine stops at the subroutine name- the one you're pointing to- but there's a line in the routine which is highlighted in blue, and there's another message indicating the nature of the error. Is there any message like that, or a line highlighted?
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Judith,

    I didn't get the screenshot.

    Remove the lines which say:
    <pre> 'The following won't run if Word 97 is in use
    If Not Left$(Application.Version, 1) = "8" Then
    Call TurnNoProofingOff
    End If</pre>


    and also
    <pre>Sub TurnNoProofingOff()
    'This subroutine is called only in Word 2000 and above
    Selection.NoProofing = False
    End Sub </pre>


    Maybe (optional) change:
    Sub CheckProtectedSection(oSection As Section)

    to:
    Private Sub CheckProtectedSection(oSection As Section)


    To run it, the last paragraph on the article might help:

    <hr>
    3. To make it seamless to the user, you could assign your macro to a toolbar button, and to a menu button on the Tools menu , replacing the existing spellchecking buttons with yours.

    You could even copy the button images from the Microsoft buttons to yours to make it completely seamless to the user.
    <hr>

    Now, I suspect you're still going to have W97/W98 Mac issues, but that might help jsut a little.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  4. #4
    New Lounger
    Join Date
    May 2001
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Thank you so much for your help. I will try these edits later today and let you know how it goes. jt

    PS I'm not sure why the attached screen shot won't download (it wouldn't for me either, I reposted with the offending code in the message for clarity.)

  5. #5
    New Lounger
    Join Date
    May 2001
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Thanks for filling folks in. When I found this macro code I thought it would be a simple cut and paste thing but I'm realizing that I need to do a bit more studying on it before I bother anyone else. I'm on my home office machine today (still a mac, still Word98) but now I am getting a different compile error, much further along in the code. The error is: Method or data member not found.

    Here is the section the error is referring to:

    Sub TurnNoProofingOff()
    'This subroutine is called only in Word 2000 and above
    Selection.NoProofing = False
    End Sub


    The error is now occuring in the section of code for Word 2000, which makes sense 'cause I'm running Word98.

    I've tried using the macro in my form. This macro text creates two macros, one called RunSpellcheck and one called TurnNoProofingOff, I not sure if this is correct.

    If the form is protected, the macro feature is grayed out. The spellcheck part of the macro *will* run if the form is unprotected.

    I may need to invest in a tutorial on Word98 macro programing for the mac to really be able to solve this problem.

    jt

  6. #6
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Warrington, Cheshire, England
    Posts
    712
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Hi Judith
    I wonder if you've fallen foul of the same thing as I did when I first started lounging.
    When you are preparing a reply, if you fill in the file attachment field and then preview your answer, the file path name is cleared. The process has to be done in this order
    a) produce your answer
    [img]/forums/images/smilies/cool.gif[/img] preview/edit/preview.... until happy with your posting
    c) attach the example file.
    Just a thought ('cos I've been there, done that <img src=/S/grin.gif border=0 alt=grin width=15 height=15>)
    Silverback

  7. #7
    New Lounger
    Join Date
    May 2001
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Yup, that was it. Thanks Brian!

  8. #8
    New Lounger
    Join Date
    May 2001
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    It works

  9. #9
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    Excellent Judith.

    I'll accept a nice cold Aussie beer in gratitude <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  10. #10
    New Lounger
    Join Date
    May 2001
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Spell Checking Forms in Mac Word98

    You got it, Geoff!

    Pick out the nicest place in Canberra.

    Again, many thanks. [img]/forums/images/smilies/smile.gif[/img]

    jt

Posting Permissions

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