|
楼主 |
发表于 2009-10-19 21:14
|
显示全部楼层
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
On Error Resume Next
ActiveSheet.Shapes("a").Cut
If Target.Count > 1 Then Exit Sub
ActiveSheet.Shapes.AddShape(msoShapeRectangle, Target.Left + Target.Width + 10, Target.Top, Target.Width * 2.6, Target.Height * 2.6).Select '显示的长度,高度
With Selection
.Name = "a"
.ShapeRange.Line.Visible = msoFalse
.ShapeRange.Fill.ForeColor.SchemeColor = 41 '显示的低颜色
.Characters.Text = Target.Value
.Characters.Font.Size = 26 '字体大小
.Characters.Font.FontStyle = "加粗"
End With
Target.Select
End Sub
引用:Microsoft Forms 2.0 Object Library
[ 本帖最后由 周晗露 于 2009-10-19 21:25 编辑 ] |
|