English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there a way to auto-update the cells in Excel from a code in VB WITHOUT using (especially infinite) loop?

If yes, Please provide example

Thank you

2007-09-26 19:23:23 · 2 answers · asked by Mr. Math Contributor 4 in Computers & Internet Software

2 answers

Yes, there is:

Calculate

Or

Application.Calculate

will calculate all of the cells in all of the open workbooks. You can also specify to calculate a specific worksheet or range by adding:

.Calculate

after specifying the worksheet or range.

If you want to look it up, look up the Calculate Method in the Visual Basic Editor help topics. I found out about it by recording a macro then pressing F9 to refresh or auto-update the values. Then I went back and looked up the code that was recorded. Then I went into help and looked up what the Calculate Method and Calculate Event do.

2007-09-27 03:46:16 · answer #1 · answered by devilishblueyes 7 · 0 0

Never done this before myself. Maybe this link will help.

http://www.astahost.com/ms-excel-automatic-update-data-t11008.html

2007-09-27 03:23:50 · answer #2 · answered by Keith 6 · 0 0

fedest.com, questions and answers