| |
▼今田 さん:
あら^ ^;余計な配慮でしたか...
Private Sub LINETXT(ByRef LX As Line)
Const x As Single = 1!
Dim Lp As Single
Dim Tp As Single
Dim Wp As Single
Dim St As String
With LX
Lp = .Left
Tp = .Top
Wp = .Width
.Height = 0
End With
St = "W " & Wp * x
With Me.TextBoxes.Add(0, 0, 0, 0)
.ShapeRange.Line.Visible = msoFalse
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.AutoSize = True
.Font.Size = 9
.Text = St
.Left = Lp + (Wp - .Width) / 2
.Top = Tp - .Height / 2
.Select
End With
'CommandBars.FindControl(ID:=1401).Execute '必要なら
End Sub
|
|