简体   繁体   English

如何使用 VBA 宏在 MS Word 中为字体添加渐变

[英]How to add gradient to font in MS Word using VBA macro

How to add gradient to font in MS Word using VBA macro.如何使用 VBA 宏在 MS Word 中为字体添加渐变。 I am able to do it on the front end by going to: Home > Font > Font Color > Gradient我可以通过以下方式在前端执行此操作:主页 > 字体 > 字体颜色 > 渐变

I wish to do this using VBA macro.我希望使用 VBA 宏来做到这一点。

You need to use Font.Fill which will give you access to the FillFormat object.您需要使用Font.Fill来访问FillFormat对象。

Readthe documentation on that to find the specific methods and properties you need.阅读相关文档以查找您需要的特定方法和属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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