Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8221421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:55:08+00:00 2026-06-07T13:55:08+00:00

I need a non-editable field in a word form that can be read in

  • 0

I need a non-editable field in a word form that can be read in vba.

Currently I use a text field, which is hidden. As in:

ActiveDocument.FormFields("DocID").Select
    Selection.Font.Hidden = false
//do read then re-hide it.

However users can still ‘tab’ in to this text field and overwrite the document ID that is there and thus invalidate the vba macro. And unfortunately that is what happens.

I can set the text field property ‘Fill-in enabled’ to false which gives the desired effect in the form, i.e the user cannot edit it. However now this text field cannot be read in vba.

ActiveDocument.FormFields("DocID").SomeProperty 
//throws error 'The requested member of the collection does not exist'

So my question is, is there a way I can store a hidden variable in a word form that can be read in a vba macro?

Unfortunately this has to be a Word-97 compatible solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:55:11+00:00Added an answer on June 7, 2026 at 1:55 pm

    You could use custom document properties instead, see here:

    http://msdn.microsoft.com/en-us/library/aa537154(v=office.11).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my app I need a scrollable field with non-editable text with custom size.
I need to get the position of the selected text within a content non-editable
i have a input tag which is non editable, but some times i need
I need to get text from text files and put it in a non-editable
I need to do a non greedy match and hope someone can help me.
I need to write a non-recursive version of the function sum-squares and Use a
I need a non-stripped version of libpthread.so for debugging. How can I compile it
html5 supports the placeholder attribute on input[type=text] elements, but I need to handle non-compliant
How to make a field in Django Admin readonly or non-editable based on the
I need to show non available dates in different color based on the event

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.