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

[µo°Ý] ¤£³sÄòªº¸ê®Æ½d³ò§ì¨ú

[µo°Ý] ¤£³sÄòªº¸ê®Æ½d³ò§ì¨ú

½Ð°Ý§Ú¦³¤@µ§¸ê®Æ­n¿ï¨ú¡A¦ý¬O¤º®e¨Ã¨S¦³³sÄò¡A¦p¹Ï©Ò¥Ü¡G

¹Ï¥Ü.jpg

§Ú·Q­n¦Û°Ê§ì¨ú¦³¸ê®Æªº½d³ò¡A¥H¹Ï¨Ó»¡ªº¸Ü´N¬OA2:C9
§Ú¦³¬d¨ìª©¤W±ÐªºRange([a2], [a65536].End(xlUp)).Select¡A
¥i¬O³o¥u¯à§ìAÄæ¡A­n«ç»ò²[»\¨ìCÄæ§Ú´N¤£·|¤F¡K

µM«á¤S¸Õ¥t¤@­ÓRange("A2").Select
        Range(Selection, Selection.End(xlDown)).Select
        Range(Selection, Selection.End(xlToRight)).Select
¥i¬O³o¼Ë¥u¯à§ì³sÄòªº¸ê®Æ¡A¤¤¶¡¦³ªÅ¥Õªº¥L´N·|Â_±¼¤F@@
·Q½Ð±Ð¸Ó«ç»ò³]©w¡A¤~¯àÅý¨t²Î¥h§P©w¦³¸ê®Æªº½d³ò©O¡H·Ð½Ð½ç±Ð¡AÁÂÁÂ~

¦^´_ 1# owen06
¸ê®Æ¬O§_¥]§t¾ã¦CªÅ¥Õ¡H

TOP

¦^´_ 2# stillfish00

S¤j§A¦n¡A¥H³o±i¹Ï¨Ó»¡ªº¸Ü¡A°²³]A5:C5³o¾ã¦C³£ªÅ¥Õ¡A¤]ÁÙ¬O¾ã­Ó§ì¨úA2:C9¡A
µM«á°²¦pB10·s¿é¤J¼Æ¦r¡A¸ê®Æ½d³ò´N·|Åܦ¨A2:C10¡A
½Ð°Ý³o¦³¿ìªk¹F¦¨¶Ü¡HÁÂÁ½ç±Ð~

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-8-14 11:24 ½s¿è

¦^´_ 3# owen06
  1.   Dim lMaxRow As Long
  2.   
  3.   With ActiveSheet
  4.     lMaxRow = Application.WorksheetFunction.Max(.[A65535].End(xlUp).Row, _
  5.                                                 .[B65535].End(xlUp).Row, _
  6.                                                 .[C65535].End(xlUp).Row)
  7.     .Range("A2:C" & lMaxRow).Select
  8.   End With
½Æ»s¥N½X

TOP

¦^´_ 4# stillfish00

s¤jÁÂÁ§A¡A¨Ï¥Îok¡A·P®¦¡I

TOP

¥Î usedrange ¸Õ¤@¤U
ss

TOP

¥i¥Îfind¤èªk§Ö³t§ä¨ì³Ì¤j¦C¸¹»P³Ì¤jÄ渹
  1. r = Cells.Find("*", , , , 1, 2).Row
  2. c = Cells.Find("*", , , , 2, 2).Column
  3. Range(Cells(2, 1), Cells(r, c)).Select
½Æ»s¥N½X

TOP

¦^´_ 6# sunnyso


sunnyso¤j¡A§Ú¦³¥Î¹Lusedrange¡A¥i¬O¥L·|§âªíÀY¤@°_¥]°_¨Ó¡A©Ò¥H¨S¿ìªk²Å¦X»Ý¨D¡A¤£¹L¤]ÁÂÁ§A~

oobird¤j¡A§Aªº¤èªk¨Ï¥Î¹L«á¤]¥i¥H¹F¦¨§Úªº»Ý¨D¡AÁÂÁ§A~

TOP

usedrange + offset + resize
ss

TOP

¦^´_ 7# oobird
¦n¤èªk¡A³q¥Î!

¦^´_ 8# owen06
ªíÀY¤£¬O°ÝÃD¡A¥i¥H¨ä¥L¤èªkºI±¼¡A
usedrange¥D­n°ÝÃD¬O¨ä¥LÀx¦s®æ¦³°Ê¹L®æ¦¡´N¥i¯à·|¥]§t
¨Ò¦pÀx¦s®æ©³¦â³]©wµL¶ñº¡¤]·|§t¦b¤º¡C

¦pªG½T©w¤£·|°Ê¨ì¡A¤~¥i¨Ï¥Îusedrange

TOP

        ÀR«ä¦Û¦b : ¦³Ä@©ñ¦b¤ß¸Ì¡A¨S¦³¨­Åé¤O¦æ¡A¥¿¦p¯Ñ¥Ð¤£¼½ºØ¡A¬Ò¬OªÅ¹L¦]½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD