asahix 发表于 2004-8-23 11:34:00

[求助]WORD中VBA怎样获得当前光标位置的坐标?

[求助]WORD中VBA怎样获得当前光标位置的坐标? 我想在当前光标位置画线等图形.


谢谢各位了!

雪山飞狐_lzh 发表于 2004-8-23 13:28:00

<TABLE style="TABLE-LAYOUT: fixed" cellSpacing=0 cellPadding=0 width="97%" align=center border=0>
<TBODY>
<TR>
<TD class=nav noWrap width="90%">
        到这里看看


<A href="http://www.officefans.net/cdb/index.php" target="_blank" ><FONT color=#003366>OFFICE精英俱乐部</FONT></A>

</TD></TR></TBODY></TABLE>

asahix 发表于 2004-8-24 10:42:00

哎,我去看了,没人理我呀。

efan2000 发表于 2004-8-24 21:54:00

使用API的GetCursorPos可以得到光标处的位置,不过这是以像素为单位的,还要转换成Word中的坐标,要懂得如何换算。

asahix 发表于 2004-9-1 15:33:00

谢谢!总算有人回答了,<A href="http://www.officefans.net/cdb/index.php" target="_blank" ><FONT color=#003366>OFFICE精英俱乐部</FONT></A>怎么还不如CAD懂OFFICE?
页: [1]
查看完整版本: [求助]WORD中VBA怎样获得当前光标位置的坐标?