Domanda

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.

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top