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

µe®æ½u­n²Ó®ØÅܦ¨²Ê®Ø

µe®æ½u­n²Ó®ØÅܦ¨²Ê®Ø

½Ð°Ý¤j¤j:

§Ú³o¼Ëªºµ{¦¡µeªº½u®æ¦¡²Ó®Ø
¦p¦ó§ï¥i¥HÅܦ¨²Ê®Ø
ÁÂÁÂ

Sub µe®æ½u()
lra = Range("A3").End(xlDown).Row  '¦Û°Ê°»´ú
For M = 3 To lra      '±qA3®æ¶}©l

Range("A" & M & ":R" & M).Select     '½d³ò
   ActiveCell.CurrentRegion.Select      '¿ï¨úÀx¦s®æ½d³ò
                        
With Selection.Borders     'µe®æ½u
     .LineStyle = xlContinuous
     .Weight = xlThin
     .ColorIndex = xlAutomatic
End With
Next M
End Sub
michael

Sub µe®æ½u()
lra = Range("A3").End(xlDown).Row  '¦Û°Ê°»´ú
For M = 3 To lra      '±qA3®æ¶}©l

Range("A" & M & ":R" & M).Select     '½d³ò
   ActiveCell.CurrentRegion.Select      '¿ï¨úÀx¦s®æ½d³ò
                        
With Selection.Borders     'µe®æ½u
     .LineStyle = xlContinuous
     .Weight = xlThick
     .ColorIndex = xlAutomatic
End With
Next M
End Sub

Weight´N¬O³]©w½uªº²Ê²Ó
clio

TOP

¦^´_ 1# chairles59
¦^´_ 2# clio
½Ð°Ñ¦Ò¡G
  1. Sub µe®æ½u()
  2.     Dim lra As Integer                      '  µe®æ®Ø½uªº²×¤î¦C
  3.     Dim lstart As Integer                   '  µe®æ®Ø½uªº°_©l¦C

  4.     lra = Range("A3").End(xlDown).Row       '  ¦Û°Ê°»´ú
  5.     lstart = 3

  6.     '  Range("A" & lstart & ":R" & lra).Select
  7.                               
  8.     '  With Selection.Borders               '  µe®æ®Ø½uªº½d³ò     
  9.     With Range("A" & lstart & ":R" & lra).Borders
  10.         .LineStyle = xlContinuous
  11.         '  .Weight = xlThin                 '  ²Ó®Ø  ³]©w½uªº²Ê²Ó
  12.         .Weight = xlThick                   '  ²Ê®Ø  ³]©w½uªº²Ê²Ó
  13.         .ColorIndex = xlAutomatic
  14.     End With
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 4# c_c_lai

ÁÂÁ¤j¤j¸Ô²Óªº¤¶²Ð
michael

TOP

        ÀR«ä¦Û¦b : ¹D¼w¬O´£ª@¦Û§Úªº©ú¿O¡A¤£¸Ó¬O¨þ¥¸§O¤HªºÃ@¤l¡C
ªð¦^¦Cªí ¤W¤@¥DÃD