摘要:
使用 Text 属性可以返回 Range 或 Selection 对象中的文本。下列示例选定下一个格式设为“标题 1”样式的段落。然后通过 MsgBox 函数显示 Text 属性的内容。Sub FindHeadingStyle() With Selection.Find .ClearFormatti 阅读全文
摘要:
确定文本是否被选定Selection 对象的 Type 属性返回所选内容类型的信息。如果所选内容为插入点,则下列示例显示一条消息。Sub IsTextSelected() If Selection.Type = wdSelectionIP Then MsgBox "Nothing is select 阅读全文