For starters, I'm using Excel 2007.
I have an Excel add-in that retrieves data from another program. However, the cells do not automatically recalculate as most cells would in Excel (such as by clicking "Calculate Now"). The only two ways I can see to make the cells recalculate are to either use the add-in's "Refresh" feature or else to click on the cell, hit F2, and then Enter.
So my question: is there a way in VBA that I can make the cell "Refresh?" Basically I would need it to effectively be the same thing as entering the cell, hitting F2 and Enter. But I'm looking for a way other than Sendkeys, if possible. I already tried:
Sheet1.Range("E5").Calculate
But that does not seem to do the job. And as far as I know there is not a way to control add-ins through VBA.
Is there a way to accomplish this? Thanks!
I have an Excel add-in that retrieves data from another program. However, the cells do not automatically recalculate as most cells would in Excel (such as by clicking "Calculate Now"). The only two ways I can see to make the cells recalculate are to either use the add-in's "Refresh" feature or else to click on the cell, hit F2, and then Enter.
So my question: is there a way in VBA that I can make the cell "Refresh?" Basically I would need it to effectively be the same thing as entering the cell, hitting F2 and Enter. But I'm looking for a way other than Sendkeys, if possible. I already tried:
Sheet1.Range("E5").Calculate
But that does not seem to do the job. And as far as I know there is not a way to control add-ins through VBA.
Is there a way to accomplish this? Thanks!