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
我想显示“用户”参加的旅行列表。我希望它分成“即将到来”和“以前的”表。目前它只显示数组列表中的所有行程。
我想创建一个 If Else 循环,它会说“如果日期稍后将列添加到该表”,否则“将列添加到该表”
信息: