ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

Ãö©ó¸óÄæ¸m¤¤©M®Ø½uµe½u¬O§_¦³¤ñ¸û²©öªº¼gªk(ÁÂÁ¦U¦ì¤j¤j¡A¤w¸Ñ¨M¡C)

¥»©«³Ì«á¥Ñ 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

TOP

¦^´_ 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

¦p­n§ó¼u©Ê¤@ÂI, ¥i±N®Ø½uªº²Ê²Ó,ÃC¦â³£³]¦¨¤Þ¼Æ
Alex

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD