- ©«¤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
|
§Aªº°ÝÃD ¦n¹³»PÄæ¦C±Æ§Ç µLÃö
¦^´_ 1# imagio
¸Õ¸Õ¬Ý§A°ÝÃDªº¤è¦V¬O§_³o¼Ë- Sub Ex()
- Dim Rng As Range, R, C, U
- Sheet2.Cells = ""
- U = 7 'Àx¦s®æªº½d³ò¥b®|
- Set Rng = Sheet2.Cells(U, U) '½d³òªº¤¤¤ßÂI
- Select Case Sheet1.[E1] '¨¤«×Àx¦s®æ
- Case 0
- C = 0
- For R = 0 To -(U - 1) Step -1
- Rng.Offset(R, C) = "M"
- Next
- Rng.Offset(R + 2, C + 1) = "M"
- Rng.Offset(R + 2, C - 1) = "M"
- Case 90
- R = 0
- For C = 0 To U
- Rng.Offset(R, C) = "M"
- Next
- Rng.Offset(R - 1, C - 2) = "M"
- Rng.Offset(R + 1, C - 2) = "M"
- Case 180
- C = 0
- For R = 0 To U
- Rng.Offset(R, C) = "M"
- Next
- Rng.Offset(R - 2, C + 1) = "M"
- Rng.Offset(R - 2, C - 1) = "M"
- Case 270
- R = 0
- For C = 0 To -(U - 1) Step -1
- Rng.Offset(R, C) = "M"
- Next
- Rng.Offset(R - 1, C + 2) = "M"
- Rng.Offset(R + 1, C + 2) = "M"
- End Select
- End Sub
½Æ»s¥N½X |
|