Consulting

Results 1 to 2 of 2

Thread: Is it possible to restrict formatting of text in an certain area

  1. #1
    VBAX Newbie
    Joined
    Jun 2018
    Posts
    3
    Location

    Is it possible to restrict formatting of text in an certain area

    Hi,

    I wonder if it is possible to restrict formatting of text in an certain area in Word with VBA. I still want the ordinary formatting tools (bold, italic etc) to be functional for the other parts of the document?
    Or is this a case closed so you if you restrict a document to formatting you can only choose the styles that are enabled?

    BR
    Jorge

  2. #2
    If you select the areas in which you wish to allow editing, then run the following macro to add editors to the selections, you can protect the document as read only, which will allow editing only in those areas so marked.
    Sub Add_Editors()
    Selection.Range.Editors.Add (wdEditorEveryone)
    End Sub
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •