フィルターのクリア

ActiveX How to modify the value of a MS Word table cell using Matlab?

4 ビュー (過去 30 日間)
jeremy longstreet
jeremy longstreet 2020 年 12 月 18 日
編集済み: jeremy longstreet 2020 年 12 月 18 日
I have a word document that I have that has a table in it.
I want to search for a phrase: "Cyclomatic complexity" in a table and then modify the cell or next column entry value to the right of that phrase: "102" to become "25".
---------------------------------------------------
Word = actxserver('Word.application');
Word.Visible = 0;
Docs = Word.Documents;
Doc = Docs.Open(filename);
Word.Selection;
Word.Selection.Find.Execute('Cyclomatic complexity',0,0,0,0,0,1,1,0,'Cyclomatic complexity',2,0,0,0,0);
%Modify the value from "102" to "25" ?
Doc.Save; Docs.Close; invoke(Word,'Quit');
---------------------------------------------------
So I can find the phrase: "Cyclomatic complexity"...
But not sure how to change the value in the following cell?

回答 (0 件)

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by