I need to copy a specific range and paste the range as a picture (without default excel borders).
ActiveSheet.Range(Cells(1, 1), Cells(10, 20)).Select
Selection.CopyPicture Appearance:=xlPrinter, Format:=xlPicture
ActiveSheet.Paste
With Selection
.Name = "My Pic"
.ShapeRange.Fill.Transparency = 0.5 '50% transparency
End with
I have also tried this code line, but without any success.
ActiveSheet.Shapes("My Pic").Fill.Transparency = 0.5
I can change the transparency of shapes with my current code but unable to change the transparency of a picture through VBA. Although I can change the transparency of a picture manually, i cant do it with VBA Macro. I have also tried to record a macro, but no code line is recorded when I change the transparency manually (weird?!). Any leads would be much appreciated! :)