- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 13# skyutm - Option Explicit
- Sub Ex()
- Dim Sh As Worksheet, M(1 To 2) As String, E As Range
- Set Sh = ActiveSheet
- 'Set ·Ó¤ù¦ì¸m = Sh.[d5]
- With ActiveSheet
- .Pictures.Delete '§R°£¤u§@ªí¥þ³¡¹Ï¤ù(¦pÁÙ¦³¨ä¾l¼Ë¦¡ªº Shape ·|¤@¨Ö§R°£)
- For Each E In .[a1:a10] '*****[a1:a10] ¤w¦³©m¦W*****
- M(1) = E
- M(2) = Mid(E, 1, 2) & Chr(10) & Mid(E, 3, IIf(Len(E) < 3, 1, Len(E) - 2)) & "¦L"
- With E
- .FormulaR1C1 = M(2)
- .Font.Size = 14
- .Font.ColorIndex = 3
- .Font.Name = "µØ±d¥j¦LÅé(P)" 'קï§APC¤Wªº¦rÅé
- .HorizontalAlignment = xlCenter
- .VerticalAlignment = xlCenter
- .WrapText = True
- .EntireRow.AutoFit '¦Û°Ê½Õ¾ã¦C°ª
- .Copy
- End With
- With .Pictures.Paste
- .Placement = xlMoveAndSize
- .PrintObject = True
-
- '*********** ¹Ï¤ù¶K¦b[B1:B10] *******
- .Top = E.Offset(, 1).Top '¹Ï¤ù:³»ºÝ¦ì¸m
- .Left = E.Offset(, 1).Left '¹Ï¤ù:¥ªÃä¦ì¸m
- E.Offset(, 1).RowHeight = E.RowHeight '¹Ï¤ù¶K¦b[B1:B10] ½Õ¾ã ¦C°ª
- E.Offset(, 1).ColumnWidth = E.ColumnWidth '¹Ï¤ù¶K¦b[B1:B10] ½Õ¾ã Äæ¼e
- '*********** ¹Ï¤ù¶K¦b[B1:B10] *******
-
- .ShapeRange.Fill.Visible = msoTrue '¹Ï¤ùI´º Åã¥Ü
- ' .ShapeRange.Fill.ForeColor.SchemeColor = 41 'I´ºÃC¦â
- .ShapeRange.Line.Visible = msoTrue '¹Ï¤ùÃä®Ø Åã¥Ü
- .ShapeRange.Line.Weight = 0.75 'Ãä®Ø.«p«×
- ' .ShapeRange.Line.Visible = msoTrue
- .ShapeRange.Line.ForeColor.SchemeColor = 10 '¹Ï¤ùÃä®Ø.ÃC¦â
- ' .ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
- End With
- E.Clear
- E = M(1)
- Next
- End With
- End Sub
½Æ»s¥N½X |
|