|
楼主 |
发表于 2024-9-16 14:28
|
显示全部楼层
本帖最后由 ning84 于 2024-9-16 17:42 编辑
非常感谢你帮助。
- Sub llll()
- Dim Rng As Range
- Dim Str As String
- Set Rng = Selection.CurrentRegion
- For ii = 1 To Rng.Rows.Count
- Debug.Print ShowChar(Rng(ii, 1))
- Str = 2460 + ii - 1
- Rng(ii, 3) = ShowChar(Str)
- Next ii
- End Sub
复制代码
- Sub Ll1()
- Dim Shp As Shape, TxtEff As TextEffectFormat, Shps As Shapes
- Dim ii, jj, kk
- Set Shps = Application.ActivePresentation.Slides(1).Shapes
- For ii = Shps.Count To 2 Step -1
- Set Shp = Shps(ii)
- Shp.Delete
- Next ii
- Dim Ll, Tt, Ww, Hh
- Dim Ss, S1, S2, S3, S4
- Ss = 22
- S1 = 1
- S2 = 10
- S3 = 16
- S4 = 20
- ''
- Ww = 30
- Hh = Ww * 0.6
- Ll = 10
- Tt = 30
-
- For ii = S1 To Ss
-
- Set Shp = Shps.AddTextbox(msoTextOrientationHorizontal, Ll, Tt, Ww, Hh)
- Ll = Ll + Ww * 1
- With Shp
- .Fill.Visible = msoFalse
- '.Line.Visible = msoTrue
- Select Case ii
- Case S1 To S2
- .TextEffect.Text = ChrW(CLng("&H" & 2460 + ii - S1))
- Case S2 To S3
- .TextEffect.Text = ChrW(CLng("&H" & 246 & Chr(65 + ii - S2 - 1)))
- Case S3 + 1 To S4
- .TextEffect.Text = ChrW(CLng("&H" & 2470 + ii - S3 - 1))
- Case Else
- .AutoShapeType = msoShapeOval
- .TextEffect.Text = ii
- .Width = Ww * 1.2
- .Height = Hh * 0.9
- .Line.Visible = msoCTrue
- .TextEffect.FontSize = Hh * 0.6
- .TextFrame.AutoSize = ppAutoSizeShapeToFitText
-
- End Select
- End With
- Next ii
- End Sub
复制代码
|
|