The following code adds a Microsoft Excel worksheet to the RichTextBox and sets its Key property to "SalesData":RichTextBox1.OLEObjects.Add , "SalesData", , "Excel.Sheet.5"When an object is added to the collection, it immediately becomes in-place active so the user can add data to it
现在的问题是如何让它不 immediately becomes in-place active ~~~~~!!!!原帖地址:
http://expert.csdn.net/Expert/topic/2884/2884662.xml?temp=.7044947
http://expert.csdn.net/Expert/topic/2886/2886006.xml?temp=.9262506
现在的问题是如何让它不 immediately becomes in-place active ~~~~~!!!!原帖地址:
http://expert.csdn.net/Expert/topic/2884/2884662.xml?temp=.7044947
http://expert.csdn.net/Expert/topic/2886/2886006.xml?temp=.9262506
解决方案 »
- Ado数据集,能实现SQL-distinct功能?
- 请教VB隐藏指定的游戏窗口的问题
- 请问:汉字怎样转化为ASCII码?
- 初学vb,不知道这个为什么链接错误,请大家指教,谢谢!!
- 讨论:在什么情况下才考虑写公共函数!来者有分
- 如何十分准确的判断是否已连上Internet?
- VB链接局域网数据库时用SQL,服务器必须安装SQL Server马?
- 关于MDI
- vb中的数据库多表混合问题,不是很容易的!答了就会有分!谢谢!
- 开发数据库软件遇到的DbGrid控件中的问题
- 关联是什么呀,DATA控件老错呀????
- 100分再问:如何解决RichTextBox中由OLEObjects.add 插入文件后自动打开的问题?
谢谢
http://www.vbaccelerator.com/codelib/richedit/vbalrall.zip
Set o = RichTextBox1.OLEObjects.Add(, "SalesData", , "Excel.Sheet.5")
o.DisplayType = rtfDisplayIcon
o.DisplayType = rtfDisplayContent