完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
SMART Electronic Development GmbH - GermanyVon:Ralf Eichele @ SMART GMBH am 25.01.99 08:23安:hpvxd_xc@hpislsup.lvld.hp.comKopie:Thema:Re:VRF:使用GetObject ActiveX Control for ExcelDear迈克,我早些时候也进入过
vee和excel的问题。 看看这个例子。 它可能会帮助你。最好的问候拉尔夫·艾切勒试图弄清楚其他一些东西,我偶然发现了你需要的一个例子。 我完成了它,希望这会带给你更多。 要使用exampleget一个hpvee公式框,删除它的输入和输出终端,放大框并粘贴下面的行。(在一个hpvee公式框中Copy = Ctrl C和Paste是Ctrl V使用鼠标选择文本。)然后得到5 'Declare Variable'对象,选择Type Object并选择下面列出的名称和类.set WB = getObject(“VeeToExcel.xls”,“Excel.sheet”); set EA = WB.Application; WB.Application.Visible = TRUE;设置WS = WB.ActiveSheet; WB.ActiveSheet.Visible = TRUE; WS.Visible = TRUE; WWS = WB.Windows; WW = WWS.Item(1); WW.WindowState = xlMaximized; WW.Visible = TRUE; //声明的变量属于'Object'类型//并且具有以下'Class':// WS = Worksheet // EA = Application // WB = Workbook // WWS = Windows // WW = Window 以上来自于谷歌翻译 以下为原文 SMART Electronic Development GmbH - Germany Von: Ralf Eichele@SMART GMBH am 25.01.99 08:23 An: hpvxd_xc@hpislsup.lvld.hp.com Kopie: Thema: Re:VRF:Using GetObject ActiveX Control for Excel Dear Mike, I got in earlier times also the problems with vee and excel. Take a look at the example. It maybe helps you. Best regards Ralf Eichele While trying to figure out some other stuff I stumbled across half an example of what you need. I completed it and hope that this will bring you any further. To use the example get an hpvee formula box, remove it's input and output terminals, enlarge the box and paste the lines below. (In an hpvee formula box Copy = Ctrl C and Paste is Ctrl V use the mouse to select text.) Then get 5 'Declare Variable' objects, select Type Object and select the name and the Class as listed below. set WB = getObject("VeeToExcel.xls","Excel.sheet"); set EA = WB.Application; WB.Application.Visible = TRUE; Set WS = WB.ActiveSheet; WB.ActiveSheet.Visible = TRUE; WS.Visible =TRUE; WWS = WB.Windows; WW = WWS.Item(1); WW.WindowState = xlMaximized; WW.Visible = TRUE; // The Declared Variables are of Type 'Object' // and have the following 'Class' : // WS = Worksheet // EA = Application // WB = Workbook // WWS = Windows // WW = Window |
|
相关推荐
1个回答
|
|
|
我试图使用GetObject函数启动Excel并打开atemplate文件。
它似乎工作,除了两个问题,Excel部分不可见,我的模板文件总是在Excelhidden。 出现Excel主菜单,但单元格区域是完全透明的(您可以看到Windows桌面,而excel最大化!)。有没有人之前有这个问题? 我已经通过软件附带的HPVEE编程手册中的实验室(6-1,6-2)没有问题,但是当我从6-1获取代码并将theCreateObject命令更改为格式正确的GetObject命令时,一切 似乎疯了!!!迈克贝斯特 以上来自于谷歌翻译 以下为原文 I am trying to use the GetObject function to start Excel and open a template file. It seems to work, except for two issues, Excel is partially invisible and my template file is always coming in Excel hidden. The Excel main menu appears but the cell area is completely transparant (you can see the windows desktop while excel is maximized!). Has anyone had this problem before? I have gone thru the labs (6-1, 6-2) in the HPVEE programming manual that comes with the software with no problems, but when I take the code from 6-1 and change the CreateObject command to the properly formatted GetObject command, everything seems to go crazy!!! Mike Bester |
|
|
|
|
只有小组成员才能发言,加入小组>>
1854 浏览 0 评论
2749 浏览 1 评论
2651 浏览 1 评论
2471 浏览 5 评论
3475 浏览 3 评论
1854浏览 0评论
427浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-8 19:03 , Processed in 0.652725 second(s), Total 70, Slave 53 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
6195