How to modify the PPT font, size, and color in batches)
Source: Internet
Author: User
To modify the PPT font, size, and color in batches, you only need to change the following VBA Code In red, replace it with the font parameters to be changed, and then put the modified VBA code into the VBA editor to run! Only applicable to ppt2007 and later versions! Sub change () dim oshape as shapedim oslide as slidedim otxtrange as textrangeon error resume next for each oslide in activepresentation. slides for each oshape in oslide. shapes set otxtrange = oshape. textframe. textrange if not isnull (otxtrange) then with otxtrange. font. name ="
_ Gb2312 "'Changed to the required font. size =
15'Change to the required text size. color. RGB = RGB (RED: =
255 , Green: =
120 , Blue: =
0 'To the desired text color, with the RGB parameter representing end with end if next nextend sub http://blog.sina.com.cn/s/blog_49f78a4b0102e22i.html
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service