简体   繁体   中英

How to select all headings in Word using VBA?

I'm very new to VBA and I have a long Word file with lots of headings. Any tips how to write a macro that selects all the headings in the file and changes the formatting?

Thanks in advance!

It is not necessary to select all the headings and change the formatting using VBA. Just modify the styles that are applied to the headings (Heading1, Heading2, Heading3 etc.)

Kem

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