简体   繁体   中英

Set image transparency with VBA in Excel

Is there a way to apply some transparency to an image using a VBA script? I have recorded a "macro" and it seems that artistic effects aren't recorded. I have found how to make it for shapes, but not for images.

This requires several steps:

  1. Place an AutoShape (like a rectangle) on the worksheet
  2. Embed your actual picture in the rectangle using: .ShapeRange.Fill.UserPicture
  3. Adjust the transparency using: .ShapeRange.Fill.Transparency

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