![]() It is only necessary for me to disable the checkbox option “limit formating to a selection of styles.” with VBA (you can see the checkbox in the picture). Result: “limit formating to a selection of styles” is NOT deactivated Now I try the code for my existing protected documents with activated option “limit formating to a selection of styles.” The code works for new documents (checkbox “limit formating to a selection of styles” is on or off). Next step, I try in my vba code in a new word document:ĪctiveDocument.Protect Type:=wdAllowOnlyFormFields, noreset:=True, enforcestylelock:=False Result: “limit formating to a selection of styles” not activatedĪctiveDocument.Protect Type:=wdAllowOnlyFormFields, noreset:=True, enforcestylelock:=True Result: “limit formating to a selection of styles” activated When user fill text in the protect document the text is Verdana 12 pt, because this is the default style.That’s the reason I want to deactivate the option “limit formating to a selection of styles.” The documents are protected to fill only formulars fields and additionally - and this is the problem - there is activate “limit formating to a selection of styles.”Ĭomplete Text with formular fields is formated to Arial 10 pt. They have Text and Formular Fields to fill with variable short text. This code doesn't work for me: Sub DisableCheckBox()ĪctiveDocument.Protect Type:=wdAllowOnlyFormFields, noreset:=True, enforcestylelock:=False In this case, 1.1.I want to disable this Restrict Style Changes in protected Microsoft Word documents with VBA Code. Step 15: Click on the Multilevel list option Step 14: If you see that the numbering level is not correct, say if you see the numbering as 1.1 instead of 1.1.1, select the numbers as shown below Step 13: From the drop-down menu, choose the option that suits your requirement Step 11: Ensure that you are in the Home tab from the top menu. Step 10: In order to add numbering again, place the cursor before Heading 3. Step 9: You can see that the numbering will be removed. Step 8: Now, click on the Ok Button in the Modify Style window. Step 7: From the Numbering and Bullets window, select None and then press OK Step 6: From the drop-down menu, select Numbering Step 5: In the Modify Style window that shows up, click on the Format button in the bottom left corner of the window. Step 3: You can see an Apply Styles window popping up. Step 2: Hold the keys Ctrl+Shift+S at the same time. Fix 2: Change the Number Formatting to None On reopening the document, if you notice the black box again, try the next fix. You should be able to get rid of the black box and see numbers instead. Under the 'Number style for this level' drop-down menu, choose a. ![]() Under 'Click level to modify', choose the level you would like to define. Under the 'Home' tab, locate the 'Paragraph' group > Click the Multilevel List icon located next to the Numbering icon. ![]() Step 4: You can see an Apply Styles window popping up To Create a List with Multiple Levels: Place your cursor anywhere within your list. Step 3: Hold the keys Ctrl+Shift+S at the same time. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |