码迷,mamicode.com
首页 > 编程语言 > 详细

VBA 图形里面加载指定图片 实现预览功能

时间:2015-01-03 14:32:10      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:

With ActiveSheet.Shapes.AddPicture(path, msoTrue, msoTrue, Px + 30, Py - 180, 120, 100)
    .Name = "Picture"
    With .ForeColor
        .Type = 2
    End With
    .BackgroundStyle = 5

    With .PictureFormat
          .CropLeft = 100
        .TransparencyColor = "0,0,0"
        .TransparentBackground = msoCTrue
    End With
    With .Shadow
        .Blur = 2
        .Type = msoShadow25
        .Obscured = 1
          .OffsetX = 10
          .OffsetY = 10
        .Transparency = 0.5686300099
        
    End With

End With

 

VBA 图形里面加载指定图片 实现预览功能

标签:

原文地址:http://www.cnblogs.com/yuzhengdong/p/4199426.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!