完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我使用的是VEE 8.5。我有两个不同的循环,在每个循环中执行以下操作(与其他循环不同步):从工作簿A1读取数据(另一个循环中的A2)从工作簿B1读取数据(另一个中的B2)
循环)将一些新数据保存到工作簿A1(另一个循环中的A2)当保存发生时,我已完成以下操作(在同一个userobject内并且直接在彼此之后): - 选择工作簿A1(或A2) - 将数据写入a 单元格保存工作簿仍然要保存到另一个工作簿然后我选择的那个。如果我在另一个userobject中选择工作簿A2作为活动工作簿,则可能在(短)时间之间选择工作簿A1和保存。 相反,它会保存到那个?有关如何安全地保存到多个工作簿的任何想法?或者我在这里做错了什么?我已经使用VEE 8年了,现在通常会找到解决方案,但不介意得到 帮助,也许是另一种设计程序/ Henrik的方法 以上来自于谷歌翻译 以下为原文 Hi, Im using VEE 8.5. I have 2 diffrent loops that does the following during each loop (not synchronized in time with eachother): Read data from workbook A1 (A2 in the other loop) Read data from workbook B1 (B2 in the other loop) Save some new data to workbook A1 (A2 in the other loop) When the save occurs i've done the following (inside the same userobject and directly after eachother): -Select workbook A1 (or A2) -Write data to a cell -Save workbook Still it wants to save to another workbook then the one i've selected. Is it possible that between the (short) time i select workbook A1 and the Save occurs that if i select workbook A2 in another userobject as the active workbook it will save to that one instead? Any ideas on how to save to multiple workbooks securely? Or am i doing semthing wrong here? I've been working with VEE for 8 years now and usualy find a solution, but won't mind getting help and perhaps an alternate way to design the program /Henrik |
|
相关推荐
1个回答
|
|
我认为如果你在此期间选择一个不同的工作簿并使用VEE的Excel保存,那么完全有可能,它会保存错误的工作簿。我最近不得不离开VEE Excel库因为我需要保存到2007年
额外列的格式。 如果你想走这条路,请回复,我会解释。 但它需要完全重写您的程序,以将这些Excel库调用转换为引用.NET程序集的对象变量和公式。 从长远来看,您可以将您的个人工作簿作为.NET对象引用,并最终只在您想要的那个上调用save。 以上来自于谷歌翻译 以下为原文 I think it's totally possible that if you select a different workbook in the meantime and use VEE's Excel save, then yes, it would save the wrong workbook. I recently had to get away from the VEE Excel libraries because I needed to save to the 2007 format for the extra columns. If you would like to go down that road, please reply and I'll explain. But it would require a complete rewrite of your program to transform those Excel library calls into object variables and formulas that reference .NET assemblies. In the long run, you would be able to reference your individual workbooks as .NET objects and ultimately call the save on just the one you want. |
|
|
|
只有小组成员才能发言,加入小组>>
1219 浏览 0 评论
2346 浏览 1 评论
2152 浏览 1 评论
2019 浏览 5 评论
2899 浏览 3 评论
957浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
697浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
797浏览 0评论
1221浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-20 20:44 , Processed in 1.189733 second(s), Total 46, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号