tsml 发表于 2009-8-6 01:11:00

在CAD中如何操控excel的被选区域?

<p>请问在CAD中如何操控excel的被选区域?在excel vba中Selection是表示活动区域,但是我把最下方的程序改了一下通不过,谁帮帮我,谢谢!!</p><p>------------------------------------</p><p>我改的:</p><p>&nbsp;&nbsp;&nbsp; Debug.Print xlSheet.<font color="#0000ff">Selection&nbsp;</font>.Address<br/>&nbsp;&nbsp;&nbsp; For Each xlRange In xlSheet.<font color="#0000ff">Selection</font>&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...........<br/>&nbsp;&nbsp;&nbsp; Next</p><p>--------------------------------------</p><p>原程序:</p><p>以下的程序截选至“<strong>Excel表格到CAD的示例程序</strong>”</p><p>地址:<a href="http://www.mjtd.com/BBS/dispbbs.asp?boardid=16&amp;replyid=97725&amp;id=16244&amp;page=1&amp;skin=0&amp;landlord=0&amp;Star=1">http://www.mjtd.com/BBS/dispbbs.asp?boardid=16&amp;replyid=97725&amp;id=16244&amp;page=1&amp;skin=0&amp;landlord=0&amp;Star=1</a></p><p>............</p><p>&nbsp;&nbsp;&nbsp; Debug.Print xlSheet.UsedRange.Address<br/>&nbsp;&nbsp;&nbsp; For Each xlRange In xlSheet.UsedRange<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...........<br/>&nbsp;&nbsp;&nbsp; Next</p><p>............</p><p>--------------------------------------</p>
页: [1]
查看完整版本: 在CAD中如何操控excel的被选区域?