比如现在光标(不是鼠标)现处在word的第3页,如何用vb得到这个页码“3”?
如何用vb选中word文件的第1—3页内容以便拷贝(不是用鼠标拖拽)?
谢谢!
------解决方案--------------------------------------------------------
- VB code
Private Sub Command1_Click()Dim wordapp As Object, doc As ObjectSet wordapp = GetObject(, "word.application")Set doc = wordapp.activedocumentMsgBox wordapp.Selection.Information(3)Set doc = NothingEnd Sub