Rinat
Rinat

Reputation: 33

Edit MS Word .docx file in VBA

Unzipping docx file (renamed to *.zip) I'v got several xml files.

Is there any way to add some sort of data (text) to this xml files using vba?

I need to place there a "hidden text" and when it need's, retrieve it.

Update 1

For example: in excel I have hidden sheets which store data received from server, it's Jsaon text ("hidden text"). I need something similar in Word, but not in active document. I know I can use DocVariable for this, but maybe there is another way.

Update 2

Question resolved, I decided to use DocVariable. Thanks for help.

Upvotes: 0

Views: 383

Answers (1)

Pankaj Jaju
Pankaj Jaju

Reputation: 5471

Why would you go to such lengths? Why can't the following work for you?

enter image description here

Upvotes: 1

Related Questions