读书人

怎么得到光标标在 Word.Document 中位

发布时间: 2012-03-06 20:47:55 作者: rapoo

如何得到光标标在 Word.Document 中位置?
如何得到光标标在 Word.Document 中位置,我们移动光标位置时在Word的任务栏,我们可以看到,第几行,第几列,那么这个值能程序的方法取得吗?

[解决办法]
MsgBox "The selection is on page " & _
Selection.Information(wdActiveEndPageNumber) & "; Column " _
& Selection.Information(wdFirstCharacterColumnNumber) & _
"; Line " _
& Selection.Information(wdFirstCharacterLineNumber)

读书人网 >VBA

热点推荐