ªð¦^¦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ÁÂÁÂ~

®¦~§A­Ì¹ê¦b³£¦n¼F®`¡IÅý§ÚÀò¯q¨}¦h
¥Îª©¥Dªº»yªk«á¡Aªº½T´N³£OK¤F
¦pªG­n«ü©wÄæ¦ìªº¸Ü¡A´N¥ÎKUBI¤j±Ðªº¡G
Range("A2:C" & UsedRange.SpecialCells(11).Row).Select

TOP

¦ýÁÙ¬O¦³ª¼ÂI¡A·í§R°£¬Y¨Ç¸ê®Æ«á¡A³Ì¤j¦C¸¹ÁÙ¬O¤£·|§ïÅÜ¡Ioobird µoªí©ó 2013/9/2 13:09
  1. Option Explicit
  2. Sub Ex()
  3.     Range("A2", UsedRange.SpecialCells(11)).Select
  4. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

SpecialCells(11) = SpecialCells(xlCellTypeLastCell)
¤u§@ªí¨Ï¥Î½d³òªº³Ì¥k¤U¨¤¡C
SpecialCells(11).Row°Ñ¼Æ¥i¦b¤£½×¨º¤@Ä檺¸ê®Æ¦h³£¥i¨ú±o³Ì¤j¦C¸¹
¦ýÁÙ¬O¦³ª¼ÂI¡A·í§R°£¬Y¨Ç¸ê®Æ«á¡A³Ì¤j¦C¸¹ÁÙ¬O¤£·|§ïÅÜ¡I

TOP

¦^´_ 13# owen06




·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¤]¥i¦A²¤Æ¡G
Range("A2", Cells.SpecialCells(11)).Select

SpecialCells(11)=SpecialCells(xlCellTypeLastCell)
[b]Kubi[/b]

TOP

¦^´_ 12# Kubi


³o­Ó¯uªº¼F®`¡I¥i¥H¶¶«K½Ð±Ð¤@¤USpecialCells(11)³o¬O¤°»ò·N«ä¶Ü¡H

TOP

Range("A2:C" & Cells.SpecialCells(11).Row).Select
[b]Kubi[/b]

TOP

¤j¤j·PÁ§Aªº¤À¨É~~~

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 : ¤H­nª¾ºÖ¡B±¤ºÖ¡B¦A³yºÖ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD