WD97: ????? ????? ?????? ?????? ??? ?????? ???????? VBA

?????? ????????? ?????? ?????????
???? ???????: 172178 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

??????

?? Microsoft Word? ?? ???? ??? ????? ??????? ?????? ?????? ?? ????? "??? ????? ???? ??????" ????? ??? ?? ?????? ?? ????? ????????.

??? ???? ??????? ??? ??? ???? ????? ???????? ???????: ???, ?? ? ? Undecided ? ???? ???????? ????? ???? ?? ???? ?? ?? ???. ??? ???? ????? ??? ????? ???????? ?? ????? ???? ???????? ???? ???.

???? ??? ??????? ????? ??????? Visual Basic for Applications ???? ????? ????????? ?????? ?????? ?? ????? ???? ???????? ???? ??? ?? ?????? ?? ????? ????????.

??????? ????

???? Microsoft ??????? ???????? ??? ??? ?? ???? ??????? ?? ?? ????? ? ? ?? ????? ??? ?????? ???????? ??????? ?/?? ???????? ???? ????. ????? ??? ??????? ??? ????? ??? ??? ??????? ???? ?? ????? ???????? ????????? ?????? ????????? ????????. ???? ?? ????? ??????? ????? Microsoft ??? ????? ????? ???? ???? ?? ?????? ?????? ??? ??????? ?????? ????? ?????? ?? ????? ??????? ?????? ????????? ???????.
??? ??? ??? ?? ???? ???? ???? ?????? ?? ???? ???????? ?? ????? ??? ??????? ????? Microsoft ?? ????? ???????. ????? ?? ?????????? ?? ?????? ????? ??? Microsoft ???:

Microsoft ????????? Partners ? https://partner.microsoft.com/global/30000104

????? Microsoft ??????? ???? ???? ??????? - http://support.microsoft.com/gp/advisoryservice

?????? ??? ???? ?? ????????? ??? ?????? ????? ???????? ???? ????? ??????? ????? Microsoft ?? ?????? ???? Microsoft ?????? ??? ?????: http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS???? ??????? ?????? Visual Basic ????????? ??????? ???????? ?? ????? ???????? ?? ?????. ????? ??? ?????? ????? ????? ???????? ?????? ???? ?? ???????? Undecided ?????? ?????? ???? ????? ???????? ?????? True "?" False. ??? ????? ???? ????? ???????? ?? ???????? ? ??? ??? ????? ???????? ??????.
   Sub ToggleCheckBoxOnEntry()
      Dim fFields As FormFields
      Dim fSelectedField As FormField
      Set fFields = ActiveDocument.FormFields
      For Each fSelectedField In Selection.FormFields
         ' Form field must be a check box.
         If fSelectedField.Type = wdFieldFormCheckBox Then
            ' Go to the case for the currently selected group.
            Select Case fSelectedField.Name
               ' Yes, No, or Undecided check box group.
               Case "Yes", "No", "Undecided"
                  ' Clear all values.
                  fFields("Yes").CheckBox.Value = False
                  fFields("No").CheckBox.Value = False
                  fFields("Undecided").CheckBox.Value = False
               ' True or False check box group.
               Case "True", "False"
                  ' Clear all values.
                  fFields("True").CheckBox.Value = False
                  fFields("False").CheckBox.Value = False
               ' You can add other Case statements for other groupings.
               ' For example:
               'Case
               '   <Code>
               'Case
               '   <Code>
               Case Else
            End Select
            ' Check the selected formfield.
            fSelectedField.CheckBox.Value = True
         End If
      Next
   End Sub
				
???????? ??? ??????? ?? ???? ???????? ????? ???? ??????? ????? ToggleCheckBoxOnEntry() ?? ??????? ????? ?? "??? ????? ???? ??????" ?? ????????.

?????? ??? ???? ?? ????????? ??? ???? ???????? "????? ????" ???? ??? ????? Office ????? ?? ???? Visual Basic ? ???? ????? "????? ????" ? ???? ??? ??? ? ?? ???? ??? ???? "???? ???? ???."

??????: ??? ??? ??????? ?????? ???? ??? ???? "????? Office" ??? ???? ??????? ?????. ??? ?? ??? ?????? ??? ??????? ??? ????????? ????? ?? "???????" ? ?????? ?????? ??????? ??????? ?? "????? ??????? ?? Microsoft:
176476?????? ??: ????? Office ?? ???? ??????? Visual Basic


?????? ??? ???? ?? ?????????? ?????? ?????? ??????? ??????? ?? "????? ??????? ?? Microsoft:
173707OFF97: ????? ????? ????? ??????? ?????? ?? ?????? ????? ?????

?????

?????? ??? ???? ?? ????????? ??? ?????? ??? ??????? Visual Basic for Applications ?????? ?????? ??????? ??????? ?? "????? ??????? ?? Microsoft:
163435VBA: ????? ????? Visual Basic ?????????

???????

???? ???????: 172178 - ????? ??? ??????: 07/???? ??????/1435 - ??????: 2.4
????? ???
  • Microsoft Word 97 Standard Edition
????? ??????: 
kbnosurvey kbarchive kbmt kbdtacode kbhowto kbmacroexample kbui KB172178 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????172178

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com