Results 1 to 5 of 5

Thread: Locking Fields

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

    Locking Fields

    How do you programmatically reference a field in a document or table cell in order to lock it? I want to lock one field in a document of many fields?

    This will be cross-posted to VBA forum

    Word 97 -SR2
    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>

  2. #2
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Pune
    Posts
    310
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Locking Fields

    Selection.Fields.Locked = True locks the programmatically selected field, and setting the same to False unlocks it. This prevents updation of the field as well.

  3. #3
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Pune
    Posts
    310
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Locking Fields

    Using the keyboard, the same effect can be had by applying Ctr-F11 and Ctrl-Shift-F11.

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

    Re: Locking Fields

    How do you recognise the field that needs to be locked?

    We will need to produce some VBA that reproduces your "thought processes" if we want to avoid locking the wrong field.

    StuartR

  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: Locking Fields

    Please refer to this thread on the VBA board.

Posting Permissions

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