完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
雅各布,实际上放慢了这个过程的速度是Excel更新了屏幕。幸运的是,有一个VBA命令,它是:Application.ScreenUpdating = FalsePut在生成数据并创建图表之前,在VBA脚本中的那一点,然后
在完成工作后,应用.ScreenUpdating = TrueIt非常重要,要记住,如果有可能在数据创建或制图过程中发生错误,将一些错误陷阱放入以重新打开屏幕更新,例如:On Error GoTo TurnScreenUpdatBackOnApplication。 ScreenUpdating = False然后在Sub ProgramTurnScreenUpdatBackOn的末尾有一个标签:Application.ScreenUpdating = TrueExit sub这将允许您继续控制Excel.Hope,帮助Gary Voltz技术官(SASTO4)测试设备维护和校准中心(TEMACC)设施管理服务技术 和Asset ServicesAirservices Australia电子邮件:gary.voltz@airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Airservices AustraliaPh1300 301 120(澳大利亚境内) )07 3886 3382Ph +61 7 3866 3382(澳大利亚境外)传真+ 61 7 3866 3531www.airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~小心:这封电子邮件是保密的。 如果您不是预期的收件人,则不得披露或使用其中包含的信息。 如果您错误地收到了这封电子邮件,请立即通过回复电子邮件告知我们并删除该文件。 澳大利亚航空服务公司不代表,保证或保证此通信的完整性没有错误,病毒或干扰。 _____来自:Meachen,Jacob [mailto:Jacob.Meachen@adckrone.com]发送时间:2008年9月24日星期三8:01 PMTo:VRFS主题:[vrf]禁用excelHi VRF中图表的自动更新我有一个在vba中运行的宏 Excel中。 宏生成大量数据,并将其放入单元格中。 当宏运行时,工作簿上有图表,excel不断更新图表,从而减慢流程。 例如,在没有任何图表的情况下,宏需要2.6秒来完成图表,宏需要10秒。 我已经将Application.Calculation设置为xlCalculationManual并在宏的末尾将其重置为xlCalculationAutomatic,是否有办法禁用图表上的自动更新?感谢Jacob Meachen ---您目前订阅了vrf: gary.voltz@airservicesaustralia.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 ---您目前订阅了vrf:hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Jacob, What is actually slowing down the process is Excel updating the Screen. Fortunately there is a VBA command for this which is: Application.ScreenUpdating = False Put that at the point in the VBA Script before you generate the data and create the Charts, then after the work is done Put Application.ScreenUpdating = True It is very important to remember that if there is any chance an error can occur during the data creation or charting to put some Error trap in to turn screen updating back on For example: On Error GoTo TurnScreenUpdatBackOn Application.ScreenUpdating = False Then have a label somewhere at the end of the Sub Program TurnScreenUpdatBackOn: Application.ScreenUpdating = True Exit sub This will allow you to continue to control Excel. Hope that helps Gary Voltz Technical Officer (SASTO4) Test Equipment Maintenance and Calibration Centre (TEMACC) Facilities Management Services Technology and Asset Services Airservices Australia E-mail: gary.voltz@airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Airservices Australia Ph 1300 301 120 (within Australia) 07 3886 3382 Ph +61 7 3866 3382 (outside Australia) Fax +61 7 3866 3531 www.airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CAUTION: This e-mail is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this e-mail in error, please tell us immediately by return e-mail and delete the document. Airservices Australia does not represent, warrant or guarantee that the integrity of this communication is free of errors, virus or interference. _____ From: Meachen, Jacob [mailto:Jacob.Meachen@adckrone.com] Sent: Wednesday, 24 September 2008 8:01 PM To: VRF Subject: [vrf] Disabling Auto update on charts in excel Hi VRF I have macro which runs in vba in excel. The macro generates lots of data which it puts into cells. The workbook has charts on it when the macro is run excel continuously updates the charts slowing down the process. For example with out any charts the macro take 2.6 seconds to complete with the charts the macro takes 10 seconds. I have already set Application.Calculation to xlCalculationManual and reset it to xlCalculationAutomatic at the end of the macro, is there a way to disable the automatic updates on the charts as well? Thanks Jacob Meachen --- You are currently subscribed to vrf as: gary.voltz@airservicesaustralia.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
相关推荐
3个回答
|
|
嗨VRF我有一个在excel中运行的宏。
宏生成大量数据,并将其放入单元格中。 当宏运行时,工作簿上有图表,excel不断更新图表,从而减慢流程。 例如,在没有任何图表的情况下,宏需要2.6秒来完成图表,宏需要10秒。 我已经设置Application.Calculation到xlCalculationManual并在宏的结尾重置为xlCalculationAutomatic,有没有办法来禁用,以及感谢雅各布Meachen ---您当前订阅的VRF如图表中的自动更新? hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Hi VRF I have macro which runs in vba in excel. The macro generates lots of data which it puts into cells. The workbook has charts on it when the macro is run excel continuously updates the charts slowing down the process. For example with out any charts the macro take 2.6 seconds to complete with the charts the macro takes 10 seconds. I have already set Application.Calculation to xlCalculationManual and reset it to xlCalculationAutomatic at the end of the macro, is there a way to disable the automatic updates on the charts as well? Thanks Jacob Meachen --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
|
|
嗨VRF我有一个在excel中运行的宏。
宏生成大量数据,并将其放入单元格中。 当宏运行时,工作簿上有图表,excel不断更新图表,从而减慢流程。 例如,在没有任何图表的情况下,宏需要2.6秒来完成图表,宏需要10秒。 我已经设置Application.Calculation到xlCalculationManual并在宏的结尾重置为xlCalculationAutomatic,有没有办法来禁用,以及感谢雅各布Meachen ---您当前订阅的VRF如图表中的自动更新? hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Hi VRF I have macro which runs in vba in excel. The macro generates lots of data which it puts into cells. The workbook has charts on it when the macro is run excel continuously updates the charts slowing down the process. For example with out any charts the macro take 2.6 seconds to complete with the charts the macro takes 10 seconds. I have already set Application.Calculation to xlCalculationManual and reset it to xlCalculationAutomatic at the end of the macro, is there a way to disable the automatic updates on the charts as well? Thanks Jacob Meachen --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
|
|
雅各布,实际上放慢了这个过程的速度是Excel更新了屏幕。幸运的是,有一个VBA命令,它是:Application.ScreenUpdating = FalsePut在生成数据并创建图表之前,在VBA脚本中的那一点,然后
在完成工作后,应用.ScreenUpdating = TrueIt非常重要,要记住,如果有可能在数据创建或制图过程中发生错误,将一些错误陷阱放入以重新打开屏幕更新,例如:On Error GoTo TurnScreenUpdatBackOnApplication。 ScreenUpdating = False然后在Sub ProgramTurnScreenUpdatBackOn的末尾有一个标签:Application.ScreenUpdating = TrueExit sub这将允许您继续控制Excel.Hope,帮助Gary Voltz技术官(SASTO4)测试设备维护和校准中心(TEMACC)设施管理服务技术 和Asset ServicesAirservices Australia电子邮件:gary.voltz@airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Airservices AustraliaPh1300 301 120(澳大利亚境内) )07 3886 3382Ph +61 7 3866 3382(澳大利亚境外)传真+ 61 7 3866 3531www.airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~小心:这封电子邮件是保密的。 如果您不是预期的收件人,则不得披露或使用其中包含的信息。 如果您错误地收到了这封电子邮件,请立即通过回复电子邮件告知我们并删除该文件。 澳大利亚航空服务公司不代表,保证或保证此通信的完整性没有错误,病毒或干扰。 _____来自:Meachen,Jacob [mailto:Jacob.Meachen@adckrone.com]发送时间:2008年9月24日星期三8:01 PMTo:VRFS主题:[vrf]禁用excelHi VRF中图表的自动更新我有一个在vba中运行的宏 Excel中。 宏生成大量数据,并将其放入单元格中。 当宏运行时,工作簿上有图表,excel不断更新图表,从而减慢流程。 例如,在没有任何图表的情况下,宏需要2.6秒来完成图表,宏需要10秒。 我已经将Application.Calculation设置为xlCalculationManual并在宏的末尾将其重置为xlCalculationAutomatic,是否有办法禁用图表上的自动更新?感谢Jacob Meachen ---您目前订阅了vrf: gary.voltz@airservicesaustralia.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 ---您目前订阅了vrf:hua_jing@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Jacob, What is actually slowing down the process is Excel updating the Screen. Fortunately there is a VBA command for this which is: Application.ScreenUpdating = False Put that at the point in the VBA Script before you generate the data and create the Charts, then after the work is done Put Application.ScreenUpdating = True It is very important to remember that if there is any chance an error can occur during the data creation or charting to put some Error trap in to turn screen updating back on For example: On Error GoTo TurnScreenUpdatBackOn Application.ScreenUpdating = False Then have a label somewhere at the end of the Sub Program TurnScreenUpdatBackOn: Application.ScreenUpdating = True Exit sub This will allow you to continue to control Excel. Hope that helps Gary Voltz Technical Officer (SASTO4) Test Equipment Maintenance and Calibration Centre (TEMACC) Facilities Management Services Technology and Asset Services Airservices Australia E-mail: gary.voltz@airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Airservices Australia Ph 1300 301 120 (within Australia) 07 3886 3382 Ph +61 7 3866 3382 (outside Australia) Fax +61 7 3866 3531 www.airservicesaustralia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CAUTION: This e-mail is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this e-mail in error, please tell us immediately by return e-mail and delete the document. Airservices Australia does not represent, warrant or guarantee that the integrity of this communication is free of errors, virus or interference. _____ From: Meachen, Jacob [mailto:Jacob.Meachen@adckrone.com] Sent: Wednesday, 24 September 2008 8:01 PM To: VRF Subject: [vrf] Disabling Auto update on charts in excel Hi VRF I have macro which runs in vba in excel. The macro generates lots of data which it puts into cells. The workbook has charts on it when the macro is run excel continuously updates the charts slowing down the process. For example with out any charts the macro take 2.6 seconds to complete with the charts the macro takes 10 seconds. I have already set Application.Calculation to xlCalculationManual and reset it to xlCalculationAutomatic at the end of the macro, is there a way to disable the automatic updates on the charts as well? Thanks Jacob Meachen --- You are currently subscribed to vrf as: gary.voltz@airservicesaustralia.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". --- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
|
|
只有小组成员才能发言,加入小组>>
799 浏览 0 评论
2181 浏览 1 评论
1964 浏览 1 评论
1828 浏览 5 评论
2702 浏览 3 评论
668浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
466浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
558浏览 0评论
2355浏览 0评论
1407浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-15 08:19 , Processed in 1.404698 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191