Ãö©ó¸óÄæ¸m¤¤©M®Ø½uµe½u¬O§_¦³¤ñ¸û²©öªº¼gªk(ÁÂÁ¦U¦ì¤j¤j¡A¤w¸Ñ¨M¡C)
- ©«¤l
- 703
- ¥DÃD
- 276
- ºëµØ
- 0
- ¿n¤À
- 1005
- ÂI¦W
- 1
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-5-29
|
Ãö©ó¸óÄæ¸m¤¤©M®Ø½uµe½u¬O§_¦³¤ñ¸û²©öªº¼gªk(ÁÂÁ¦U¦ì¤j¤j¡A¤w¸Ñ¨M¡C)
¥»©«³Ì«á¥Ñ av8d ©ó 2012-4-27 08:12 ½s¿è
º¥ýA1:H1©MA2:H2Äæ¨ú®ø¸óÄæ¸m¤¤- Range("A1:G1").Select
- With Selection
- .HorizontalAlignment = xlCenter
- .VerticalAlignment = xlCenter
- .WrapText = False
- .Orientation = 0
- .AddIndent = False
- .IndentLevel = 0
- .ShrinkToFit = False
- .ReadingOrder = xlContext
- .MergeCells = False
- End With
- Selection.Merge
- Range("A2:G2").Select
- With Selection
- .HorizontalAlignment = xlCenter
- .VerticalAlignment = xlCenter
- .WrapText = False
- .Orientation = 0
- .AddIndent = False
- .IndentLevel = 0
- .ShrinkToFit = False
- .ReadingOrder = xlContext
- .MergeCells = False
- End With
- Selection.Merge
- End Sub
½Æ»s¥N½X µM«á¬OA1:G1©MA2:G2¸óÄæ¸m¤¤- Range("A1:H1").Select
- With Selection
- .HorizontalAlignment = xlGeneral
- .VerticalAlignment = xlCenter
- .WrapText = False
- .Orientation = 0
- .AddIndent = False
- .IndentLevel = 0
- .ShrinkToFit = False
- .ReadingOrder = xlContext
- .MergeCells = True
- End With
- Selection.UnMerge
- Range("A2:H2").Select
- With Selection
- .HorizontalAlignment = xlGeneral
- .VerticalAlignment = xlCenter
- .WrapText = False
- .Orientation = 0
- .AddIndent = False
- .IndentLevel = 0
- .ShrinkToFit = False
- .ReadingOrder = xlContext
- .MergeCells = True
- End With
- Selection.UnMerge
½Æ»s¥N½X µM«áA1:G2®Ø½uµe¥k½u- Range("A1:G2").Select
- Selection.Borders(xlDiagonalDown).LineStyle = xlNone
- Selection.Borders(xlDiagonalUp).LineStyle = xlNone
- With Selection.Borders(xlEdgeLeft)
- .LineStyle = xlContinuous
- .ColorIndex = 0
- .TintAndShade = 0
- .Weight = xlThin
- End With
- With Selection.Borders(xlEdgeTop)
- .LineStyle = xlContinuous
- .ColorIndex = 0
- .TintAndShade = 0
- .Weight = xlThin
- End With
- With Selection.Borders(xlEdgeBottom)
- .LineStyle = xlContinuous
- .ColorIndex = 0
- .TintAndShade = 0
- .Weight = xlThin
- End With
- With Selection.Borders(xlEdgeRight)
- .LineStyle = xlContinuous
- .ColorIndex = 0
- .TintAndShade = 0
- .Weight = xlThin
- End With
- Selection.Borders(xlInsideVertical).LineStyle = xlNone
- With Selection.Borders(xlInsideHorizontal)
- .LineStyle = xlContinuous
- .ColorIndex = 0
- .TintAndShade = 0
- .Weight = xlThin
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
¹ï©ó¿ý»sªº¥N½X¡A§AÀ³¸Ó§â·Æ¹«©ñ¦b¨C¤@¦æ¤W«öF1¡A¬d¬Ý¥¦¬O°µ¤°»ò¥Îªº
µM«á§A´Nª¾¹Dþ¨Ç»y¥y¬O¥Î¤£¨ìªº¤F¡C
®³¨Ó¥Îªº¥N½X¹ï¾Ç²ßµL¦h¤jÀ°§U¡C |
|
|
|
|
|
|
- ©«¤l
- 967
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 1001
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-11-29
- ³Ì«áµn¿ý
- 2022-5-17
|
¦^´_ 1# av8d - Sub aa()
- [A1:G1].Merge
- [A1:G1].HorizontalAlignment = xlCenter
- [A2:G2].Merge
- [A2:G2].HorizontalAlignment = xlCenter
- End Sub
- Sub bb()
- [A1:G1].UnMerge
- [A2:G2].UnMerge
- End Sub
- Sub cc()
- [A1:G2].Borders.LineStyle = xlContinuous
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 51
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 81
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-9
- ³Ì«áµn¿ý
- 2013-1-9
|
¥»©«³Ì«á¥Ñ alexliou ©ó 2012-4-24 19:09 ½s¿è
¦b¤@±i¤u§@ªí¸Ì
¥i¯à¦³¦n´XÓ¦a¤ènµe²Ê¥~®Ø½u©M¸óÄæ¸m¤¤
§Ú²{¦b³£±Nµe®Ø½u©M¸óÄæ¸m¤¤¼g¦¨ ¨ç¦¡
¤Þ¼Æ¬O Range ª«¥ó
¨C¦¸nµe®Ø½u©Î¸óÄæ¸m¤¤®É
´N¥h©I¥s¨ç¦¡ ex. Call µe²Ê¥~®Ø(Range("A1:A10"))
¬Ù±o«½Æ¤@°ï Code |
|
Alex
|
|
|
|
|
- ©«¤l
- 51
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 81
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-9
- ³Ì«áµn¿ý
- 2013-1-9
|
¦^´_ 6# GBKEE
³o¥u¬O§âµe²Ê¥~®Øªºcode¶°¦X¦b¤@°_¦Ó¤w
Sub µe²Ê¥~®Ø(oRrange As Range)
oRange.Borders(xlDiagonalDown).LineStyle = xlNone
oRange.Borders(xlDiagonalUp).LineStyle = xlNone
With oRange.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.Weight = xlMedium
End With
With oRange.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.Weight = xlMedium
End With
With oRange.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.Weight = xlMedium
End With
With oRange.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.Weight = xlMedium
End With
oRange.Borders(xlInsideVertical).LineStyle = xlNone
oRange.Borders(xlInsideHorizontal).LineStyle = xlNone
End Sub
¦pn§ó¼u©Ê¤@ÂI, ¥i±N®Ø½uªº²Ê²Ó,ÃC¦â³£³]¦¨¤Þ¼Æ |
|
Alex
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
¥»©«³Ì«á¥Ñ oobird ©ó 2012-4-25 08:02 ½s¿è
- Sub yy()
- With Selection
- .Borders.LineStyle = 0
- .Borders.LineStyle = 1
- .Borders.ColorIndex = 5
- .BorderAround , 3, 5
- End With
- End Sub
½Æ»s¥N½X ¥i¿ï¨ú¤@Ó½d³ò¡A©Î¦P®É¿ï¦hÓ°Ï°ì¡A¤@°_µ¹®Ø½u¡C¤º®Ø¬°1¡A¥~®Ø¬°3¡A5¬OÃC¦â |
|
|
|
|
|
|