Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
已保存的 Word 文档将其样式定义保存在单个位置 (styles.xml),并通过 styleId 引用文档 (document.xml) 中的这些样式。styleId 可以与样式名称不同。样式名称是通过用户界面显示的内容。
在我的宏中,我有一行Set myStyle = ActiveDocument.Styles("myStyle"),我可以通过监视窗口浏览属性myStyle,但我找不到 styleId。这可以使用宏吗?
Set myStyle = ActiveDocument.Styles("myStyle")
myStyle