简体   繁体   中英

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.

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM