![]() ![]() ![]() Go ahead and give it a try!!īy simply changing the character codes (i.e., 111 and 254) in the procedures above, you can create practically any toggle pair. ![]() 'i represents the character position of the symbol in the field code text.Īfter inserting the ToggleCheckbox procedure in a VBA project module, you are ready to use your interactive checkbox. The following procedure will create a checked box (Wingding character 254) at the insertion point in your document. The field can be created manually, but it is easier for me to show you a procedure that creates the required field automatically. First, a properly constructed MacroButton field. The basic technique requires two elements. You can change between double and single click by executing a single line of code shown below in the VB Editor immediate window. I use the double-click setting and believe it is the default. Note: MacroButton fields can be set to execute on single or double click. Result is double-clicked, the VBA procedure toggles the symbol displayed. Each time a symbol character displayed as the field The VBA procedure assigned to the MacroButton is used to evaluate the field code text, determine the current character symbol displayed, and then change the field code text to display the opposite symbol in the pair. The process involves using one of two symbol characters as the "displayed" result in a MacroButton field. This Microsoft Word Tips & Microsoft Word Help page will show you how to incorporate interactive checkboxes (or any symbol pairs) into an unprotected Word document. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |