Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading the value out of form fields in Word 97 1

Status
Not open for further replies.

mmtraining

IS-IT--Management
Mar 18, 2002
104
DE
I have a long table in Word 97, filled with various project activities, which are to be carried out or not, as decided by the project manager. The table is protected and allows FormFields to be used. In each row that can be chosen, I have got a checkbox which I put in there using the Forms icon bar.

When PM is finished, he clicks onto another symbol and starts my still-to-be-written-super-module. This code should read the value of the checkboxes and, if one is checked, carry out a certain action.

How do I find out if a checkbox is checked? I have tried reading out using the bookmarks name and got wierd error messages.

Any ideas?

Carol
Berlin, Germany
 
Carol

Are there particular reasons why this has to be Word? It could be easier to implement it other ways, particularly given what seems to be on the horizon. For example you might consider an Access db that can then export an .rtf file to merge into a pre-existing Word report document.

Linnet
 
try this out

Code:
Dim oFLD As FormField

For Each oFLD In ActiveDocument.FormFields
  With oFLD
    Debug.Print .Name, .Result
  End With
Next oFLD
 
Linnet: You are right, it is a borderline case. Problem here is that up to n thousand people might work with the template. They don't have Access and the network people would hang, draw and quarter me if I wanted to hand out the runtime version [neutral]

JustinEziequiel: You are brillo, the magic word is
Code:
.Result
. Thank you very much, now I can really get going. Life is wonderful :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top