简体   繁体   中英

Excel VBA Slow Opening

We have an excel workbook (xlsm) which has an embedded VBA code, which looks up the distance between two points using the getgoogledistance module.

Since we have added this to the workbook, it take a very long time to open sometimes in excess of 10 minutes..

I suspect on opening the workbook, it is trying to update all of the entries, hence why it is slow to open.

Is there a way in which I could add a button to the worksheet and rather than on 'open' update the necessary cells, when this button is clicked it updated all the cells?

Yes, you need to go to the options, then customize menu and from the list on the right, check the Developer menu.

Back to Excel, you'll be able to add controls such as push buttons and attach macros to them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM