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

¥i¥H½Ð±Ð·íÄæ¦ì¤£¬O©T©w¦b¤@­Ó¦ì¸m§Ú­n¦p¦ócopy¨ì²Ä2¬¡­¶

¦^´_ 19# GBKEE


    ³øºp¤S¦b³Â·Ð¤j¤j,§Ú¦b½m²ß®É¸I¨ì§Úªº¸ê®Æ¦pªG¤£¬O¹³¤W¦¸¤@¼Ë¬O³sÄò©Êªº,¤¤¶¡·|¦³ªÅ¥ÕÄæ¦ì §Úª¦¹L¤å http://forum.twbts.com/viewthread.php?tid=4972&highlight=END
Sub Ex()
    Dim Rng As Range
    Set Rng = [B5:B50]
    Set Rng = Rng.SpecialCells(xlCellTypeConstants)   
    Set Rng = Rng.Areas(Rng.Areas.Count)
    Rng.Cells(Rng.Rows.Count, 1).Select
³øºp¯uªº¤£¤Ó¤F¸Ñ³o¬q°T®§ªº·N¸q,§Ú°õ¦æ¹L¥i¥H§ì¨ì¸ê®Æ¨ì³Ì«á¤@¦æ,¤]§V¤O¥h¤F¸Ñ,·Q¿ìªk®M¶i¥hµ{¦¡¤º,¤]¸Õ¹L¥ÎRange("a65536"),end(xlup)§ì¨ú¸ê®Æ,¦ý³£µLªk¦¨¥\,©Ò¥H­n³Â·Ð¤j¤j«ü¾É

ÅܼÆ4.JPG (132.82 KB)

ÅܼÆ4.JPG

ÅܼÆ3.JPG (137.79 KB)

ÅܼÆ3.JPG

123.rar (11.12 KB)

Book2.rar (11.54 KB)

TOP

¦^´_ 21# hu0318s
SpecialCells ¤èªk   ¶Ç¦^ Range ª«¥ó¡A¦¹ª«¥ó¥Nªí»P«ü©w«¬ºA¤Î­È¬Û²Å¦Xªº©Ò¦³Àx¦s®æ¡CRange ª«¥ó¡C
EntireColumn ÄÝ©Ê ¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªí¥]§t¸Ó«ü©w½d³òªº¾ã­ÓÄæ (©Î­Y¤zÄæ)¡C
Areas ÄÝ©Ê         ¶Ç¦^ Areas ¶°¦X¡A¦¹¶°¦X¥Nªí¦h­«½d³ò¤¤ªº©Ò¦³½d³ò¡C
  1. Option Base 1
  2. Sub Ex2()
  3.     Dim ar(), i As Integer, a As Range
  4.     Sheet2.[a:x].Clear
  5.     ar = Array("T1", "T2", "t3")
  6.     With Workbooks.Open(Filename:="C:\123.xls")
  7.         For i = 1 To UBound(ar)
  8.             Set a = .Worksheets("data").Cells.Find(ar(i), lookat:=xlWhole)
  9.             If Not a Is Nothing Then a.EntireColumn.SpecialCells(xlCellTypeConstants).Copy Worksheets(2).Cells(1, i)
  10.         Next
  11.        .Close False
  12.     End With
  13. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ hu0318s ©ó 2013-12-8 00:28 ½s¿è

¦^´_ 22# GBKEE


    ÁÂÁ¤j¤jªº«ü¾É,§Ú­è­è¾Ç¨ì¯»¦h·sªºª¾ÃÑ,§Ú¥i¥H¦b½Ð°Ý¤@¤U¶Ü, §Ú­n¥h¨ºÃä¬ÝRANGE ªº¤è¦¡¸òÄÝ©Ê,¹³§A³o¼Ë¥i¥H¬d¨ì¥¦ªº¤è,³øºp¤S­n³Â·Ð¤j¤j§A±Ð¾É§Ú¤@¤U,ÁÙ¦³¥@­±¤W¦³½æ³o¼Ëªº®Ñ¶Ü?
§Ú¥h¹Ï®ÑÀ]­É³oªOEXCEL VBA ¥\¯à¯Á¤Þ¦¡°Ñ¦Ò¤â¥U,¦ý¦n¹³¨SÔ£¥Î©Ò¥H­n½Ð°Ý¤@¤U­n¥h¨ºÃä®ÑÄy¤~¦³¤U­±ªº°T®§
SpecialCells ¤èªk   ¶Ç¦^ Range ª«¥ó¡A¦¹ª«¥ó¥Nªí»P«ü©w«¬ºA¤Î­È¬Û²Å¦Xªº©Ò¦³Àx¦s®æ¡CRange ª«¥ó¡C
EntireColumn ÄÝ©Ê ¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªí¥]§t¸Ó«ü©w½d³òªº¾ã­ÓÄæ (©Î­Y¤zÄæ)¡C
Areas ÄÝ©Ê         ¶Ç¦^ Areas ¶°¦X¡A¦¹¶°¦X¥Nªí¦h­«½d³ò¤¤ªº©Ò¦³½d³ò¡C

122.JPG (81.15 KB)

122.JPG

TOP

¦^´_ 23# hu0318s
¤£¥²±Ëªñ¨D»·

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

TOP

¦^´_ 24# GBKEE


    ÁÂÁ¤j¤jªº±Ð¾É,§Ú·|¦b§V¤O¾Ç²ß ·R¦º§A­Ì©Ô:)

TOP

·PÁ¤j¤jµL¨p¤À¨É

TOP

        ÀR«ä¦Û¦b : °µ¸Ó°µªº¨Æ¬O´¼¼z¡A°µ¤£¸Ó°µªº¨Æ¬O·Mè¡C
ªð¦^¦Cªí ¤W¤@¥DÃD