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

[µo°Ý] §PÂ_ø»s¿ï¨ú®æ½uªº½d³ò

[µo°Ý] §PÂ_ø»s¿ï¨ú®æ½uªº½d³ò

¦³¬d¨ìø»s®æ½uªº»yªk¬°¤â°Ê¤è¦¡Ã¸»s®æ½u

Sub ø»s¥~®Ø½u()
MsgBox ¡§¦b©Ò¿ï¨úªºÀx¦s®æ½d³ò¥|©Pø»s¥~®Ø½u¡¨
With Selection
.Borders(xlEdgeTop).LineStyle = xlContinuous
.Borders(xlEdgeBottom).LineStyle = xlContinuous
.Borders(xlEdgeLeft).LineStyle = xlContinuous
.Borders(xlEdgeRight).LineStyle = xlContinuous
End With
End Sub


°²³]ªí®æ¦p¤U

A B C D E
1  2 3 4 5
6  7  8 9 1

©T©w¥ª¤WA4«hJÄæ«h§PÂ_³Ì«á¤@Ä榳­È¬°Ã¸»s½d³ò,¨Ò¦pJ20,¥i§_¨Ï¥Î§PÂ_¬Oø»s®æ½u?

¦^´_ 3# ML089

·PÁ¤j¤j³o­Ó¤èªk¤ñ¸û½ÆÂø¤]Åý¦³»Ý­nªº¤H°Ñ¦Ò¤@¤U!
Worksheets.Select '¤u§@ªí¿ï¨ú
Range("A4").Select 'A4Àx¦s®æ¬°°_ÂI
Range(Selection, Selection.End(xlToRight)).Select '¿ï¨ú©¹¥k
Range(Selection, Selection.End(xlDown)).Select '¿ï¨ú©¹¤U

TOP

¦^´_ 2# EddieLiang

ActiveSheet.Range("A4").End(xlDown).End(xlToRight).Selection.Borders.LineStyle = xlContinuous 'µLªk°õ¦æ

§ï¬°

ActiveSheet.Range("A4").End(xlDown).End(xlToRight).Borders.LineStyle = xlContinuous 'µLªk°õ¦æ
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 1# EddieLiang

'¿ï¨ú¥HA1¬°°ò·Ç¡A¦V¤U©M¦V¥k©Ò¦³³sÄò¸ê®ÆªºÀx¦s®æ
ActiveSheet.Range("A4").End(xlDown).End(xlToRight).Select

'¸ê½è·M¬N§ï¬°³o¼Ë«oµLªk¹B¦æ
ActiveSheet.Range("A4").End(xlDown).End(xlToRight).Selection.Borders.LineStyle = xlContinuous 'µLªk°õ¦æ

TOP

        ÀR«ä¦Û¦b : ¬Ý§O¤H¤£¶¶²´¡A¬O¦Û¤v­×¾i¤£°÷¡C
ªð¦^¦Cªí ¤W¤@¥DÃD