How do I use variables to set properties in VBA (Excel)

前端 未结 3 1004
轮回少年
轮回少年 2020-11-29 09:27

Take this code:

With ActiveSheet.Shapes.AddShape(msoShapeRectangle, x, y, w, h).TextFrame
  .Parent.Line.Visible = False
  .Parent.Fill.ForeColor.RGB = RGB(r         


        
3条回答
  •  余生分开走
    2020-11-29 10:30

    False evaluates to Zero. You can construct an integer variable to equate to zero and have it turn out the same way as False.

提交回复
热议问题