What are the limitations for bookmark names in Microsoft Word?

試著忘記壹切 提交于 2019-11-30 09:14:24

If you are familiar with regular expressions, I would say it is

^(?!\d)\w{1,40}$

Where \w refers to the range of Unicode word characters, which also contain the underscore and the digits from 0-9.

Expressed differently: The name must start with a word character (but not a digit), then any Unicode word character may follow up to an overall length of 40 characters. Word characters explicitly exclude white space and punctuation of any kind.

As divo states in the comments, bookmarks with names beginning with an underscore are treated as "hidden". It it is not possible to create bookmarks that begin with an underscore via the user interface, but you can do it through "Bookmarks.Add"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!