• Switching off field grey (Word 97 SR2 Win95)

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Switching off field grey (Word 97 SR2 Win95)

    Author
    Topic
    #380090

    I am using the following line in an autoopen to switch off the grey background of fields:

    ActiveDocument.FormFields.Shaded = Not ActiveDocument.FormFields.Shaded

    However this seems to act like a flip-flop; load the doc once and the grey is off, load it again and it’s back on again.

    Is there some way of setting the grey off every time?

    Many thanks,

    David

    Viewing 0 reply threads
    Author
    Replies
    • #635177

      Indeed, your code toggles the value of ActiveDocuments.FormFields.Shaded. Not inverts the start value, so if it’s off, it’s turned on, and if it’s on, it’s turned off. Try

      ActiveDocument.FormFields.Shaded = False

      instead.

    Viewing 0 reply threads
    Reply To: Switching off field grey (Word 97 SR2 Win95)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: