Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Excel 2010 file containing auto-updating cells with RTD. Example of cell:


I need to extract (in a .txt file) those cells' values, every X minutes. My .txt file MUST contain the updated value.

I tried with a macro. That macro exports every X minutes a txt file of the Excel file. The problem is that when macro is running, cells doesn't update: the values remain the same of those before the macro was launched. It looks like macro forbids the updating.

How can I do?

Thank you.

share|improve this question

First, go to Excel's File menu, and click on Options. Under Formulas > Calculation Options > Workbook Calculation, select Manual. Now you can add a simple command to your VBA code to update your cells. This command is Application.Calculate (or just Calculate). Hope that helps.

share|improve this answer

From your question i guess you have some sort of timing loop in your macro that waits for the delay time before doing the logging, but the macro continues to run.

If this is so then a better method is to use Application.OnTime which allow scheduling a macro to run at a specific time. in the interim control is returned to excel normally

To get you started here's an outline

Sub YourSub()
    <do your logging stuff>

    if not <terminal condition> then
        Application.OnTime Now + TimeValue("XX:XX:XX"), "YourSub" 
    end if
end sub
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.