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

[µo°Ý] ´M§ä³sÄòªºÀx¦s®æ

[µo°Ý] ´M§ä³sÄòªºÀx¦s®æ

¦U¦ì¤j®v«e½ú¦n

    ¤p¤k¤l¤S¨Ó³Â·Ð¦U¦ì¤F,¤u§@ªía­n´M§ä³sÄòªºÀx¦s®æ

    ´M§ä½d³òa1:h99,¬Ò¬°01~99ªº¼Æ¦r,§ä¨ìªº¨C1²Õ¨Ì§Ç±qL1¶K¤W

    ¬°¤è«K¤j®aÆ[¹î,¤p¤k¤l¤w¥ý±N­n§äªº¦a¤è¶î¦¨¶À¦â

    ¨Ã¥Î¤H¤u°µ¦¨¤u§@ªíb,§Y­n§â¤u§@ªíaÅܦ¨¤u§@ªíb

      ÁٽЦU¦ì¤j®v«e½úÀ°¦£,ÁÂÁÂ!! line1.rar (2.58 KB)
an

¥»©«³Ì«á¥Ñ an13755 ©ó 2011-3-13 18:14 ½s¿è

donald¤j¯u¬O°ª¤â,§¹¥þ¸Ñ¨M§Úªº°ÝÃD

±zÀ°¤F§Ú1¦U¤j¦£,«D±`·PÁÂ,ÁÂÁÂ!!

¹ï¤F,½Ð°Ý  End(4) <>   ¬O¤°»ò·N«ä©O??ÁÂÁÂ!!
an

TOP

¦^´_ 3# an13755
VBAªº»¡©ú
End ÄÝ©Ê
½Ð°Ñ¾\®M¥Î¦Ü½d¨Ò¯S©w¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªí¥]§t¨Ó·½½d³ò¤§°Ï°ìµ²§À³BªºÀx¦s®æ¡Cµ¥©ó«ö END+¦V¤WÁä¡BEND+¦V¤UÁä¡BEND+¦V¥ªÁä©Î END+¦V¥kÁä¡C°ßŪ Range ª«¥ó¡C
expression.End(Direction)
expression    ¥²¿ï¡C¦¹¹Bºâ¦¡·|¶Ç¦^ [®M¥Î¦Ü] ²M³æ¤¤ªº¨ä¤¤¤@­Óª«¥ó¡C
Direction    ¥²¿ïªº XlDirection¡C­n²¾©¹ªº¤è¦V¡C
XlDirection ¥i¥H¬O³o¨Ç XlDirection ±`¼Æ¤§¤@¡C
xlDown     ->4
xlToRight  ->2
xlToLeft    ->1
xlUp         ->3
  1. Sub Ex()
  2.     MsgBox Range("B10").End(xlToLeft).Address
  3.     MsgBox Range("B10").End(1).Address
  4.    
  5.     MsgBox Range("B10").End(xlToRight).Address
  6.     MsgBox Range("B10").End(2).Address
  7.    
  8.     MsgBox Range("B10").End(xlUp).Address
  9.     MsgBox Range("B10").End(3).Address
  10.    
  11.     MsgBox Range("B10").End(xlDown).Address
  12.     MsgBox Range("B10").End(4).Address
  13.    
  14. End Sub
½Æ»s¥N½X

TOP

¦^´_ 1# an13755
  1. Sub Ex()
  2.     Dim Rng(1 To 2) As Range, R, C
  3.     Set Rng(1) = [a1:h99]
  4.     Set Rng(2) = [L1]
  5.     For Each C In Rng(1).Columns
  6.         For Each R In C.SpecialCells(xlCellTypeConstants).Areas
  7.             If R.Cells.Count >= 2 Then
  8.                 Rng(2).Resize(R.Cells.Count) = R.Value
  9.                 Set Rng(2) = Rng(2).Offset(, 1)
  10.             End If
  11.         Next
  12.     Next
  13. End Sub
½Æ»s¥N½X

TOP

·PÁÂdonald¤j¤ÎGBKEE¤jªº«ü¾É

§A­Ì¯u¬Oªì¾ÇªÌªº¨}®v,ÁÂÁÂ!!
an

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤H¤£©È¿ù¡A´N©È¤£§ï¹L¡A§ï¹L¨Ã¤£Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD