How do I update a cell in a closed workbook?
Hey,
How do I, with VBA code, update a cell in a closed workbook when a cell in the active workbook changes?
When the update is done, the cell value in the closed workbook shall have the same value as the changed cell in the active workbook.
Best Regards
Cathrine
[1230 byte] By [
MyLady] at [2008-1-8]
Hi,
This article maybe useful.
http://www.excelkb.com/article.aspx?id=10155&query=update+closed+workbook
If you are using code what is the reason for not opening, updating and then closing the workbook via code?
Did you include the reference to the library as stated at the top of the page?
External reference(s): - Microsoft ActiveX Data Object 2.5 Library and later.
Use menu Tools > References..
Hey again Andy,
Great thanks for the reminder!
I forgot that… it works fine.
And to your question, for the curiosity reason, if it could be done, I wanted to try out this method instead of opening the workbook. It could be useful one day…
Cath