How do I update fields in a Word document using activeX in MATLAB?
Show older comments
I used MATLAB to add a new figure to a Word document and would like to update the figures list.
hWord = actxserver('word.application');
hWord.Visible = 1;
hDocs = hWord.documents;
hDoc = hDocs.Add;
hDoc.Activate;
hDoc.fields.update
When I run this script, I get the following error:
'update' needs one of the following:
Database Toolbox
Fuzzy Logic Toolbox
Instrument Control Toolbox
Predictive Maintenance Toolbox
Robotics System Toolbox
Simulink Control Design
Simulink Real-Time Statistics and Machine Learning Toolbox
System Composer
error test (line 11)
hDoc.fields.update
How do I update the fields in my Word document?
Accepted Answer
More Answers (0)
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!