Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    543
    Thanks
    56
    Thanked 0 Times in 0 Posts

    OptionButton prob (Win2K/Off2K/XPP/OffXP)

    I have written a macro that uses the following code to insert or not insert specific text in a letter.

    If OptButInclude.Value = True Then
    Selection.GoTo What:=wdGoToBookmark, Name:="OtherFees"
    Selection.TypeText Text:=txtOtherFees

    ElseIf OptButExclude.Value = True Then
    ChosenOption = ""
    End If

    When I run it on my machine, XPP/OffXP, it runs fine. However, I have one user running Win2K/Off2K on whose machine keeps getting a scripting error. She is getting a wee bit annoyed as when iot fails she has input a fair amount of information.

    Can anyone help.
    cheers

    Phil Carter

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: OptionButton prob (Win2K/Off2K/XPP/OffXP)

    Check the references list in the IDE on her PC. I suspect she's got a
    MISSING: entry that corresponds to some XP level library. See if that's it
    and identify it then post back...
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    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: OptionButton prob (Win2K/Off2K/XPP/OffXP)

    Can you post the exact error message? When you say "scripting," is this something running from Outlook form VBScript to Word, or is it internal to Word?

  4. #4
    4 Star Lounger
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    543
    Thanks
    56
    Thanked 0 Times in 0 Posts

    Re: OptionButton prob (Win2K/Off2K/XPP/OffXP)

    Thanks Kevin and escher for replying so promptly (you guys must be like and start work real early, 6:30am).

    One of the problems, I have now realised, was that the Win2K machine did not have the Calendar object loaded. I have overcome this by removing the "select date" function.

    Attached are a couple of screen shots of the error message and one of the highlighted code.
    cheers

    Phil Carter

  5. #5
    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: OptionButton prob (Win2K/Off2K/XPP/OffXP)

    I'm in California; you won't catch me in the Lounge at 6:30AM!

    Regarding the calendar control, if this is the DTPicker control from mscomct2.ocx, it is redistributable if you have Visual Basic or Office Developer. But that's a lot of work if this is the only use of it...

Posting Permissions

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