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

[µo°Ý] °j°é°ÝÃD

[µo°Ý] °j°é°ÝÃD

¥»©«³Ì«á¥Ñ spermbank ©ó 2013-11-22 12:07 ½s¿è

¤j®a¦n:
     Sheets("¤u§@ªí1").Select
      x = Application.WorksheetFunction.CountA(Range("A:A")) 'Äæ¦ì¦³­È½d³ò­pºâ
     °²³]X=10
     for i = 3 to x
     next
     ¥i¥H°õ¦æ
     for i = x to 3
     next
     ¬°¤°»ò¤£¯à°õ¦æ¡A¦³¤°»ò¤è¦¡¥i¥H¨Ï³o­Ó°j°é¥¿±`°õ¦æ©O?

¦^´_ 1# spermbank
§A¨S¦³±`ÂsÄý°Q½×°Ïªº¤º®e,(¦h¦hÂsÄý,¥\¤O¤~¯à¤É¯Å)
  1. X=10
  2.      for i = 3 to x
  3.      next
  4.      for i = x to 3  STEP -1
  5.      next
  6.    
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ spermbank ©ó 2013-11-22 12:43 ½s¿è

¦^´_ 2# GBKEE


    G¤j¡A·PÁ¡C
    §Ú·|ºCºC¾Ç²ßÂsÄý¡A²{¦b³£ªá¦b·Qµ¦²¤¤W><
    ·PÁÂ

TOP

¦^´_ 1# spermbank


for ¦b§A¨S¦³«ü©wªº±¡§Î¤U¡A³£¬O±q¤p¨ì¤j¥h°õ¦æªº¡A
©Ò¥H§A¥u­nx¤ñ«á­±ªº¼Æ­È¤j¡A´N¤£·|°Ê¡A
¦]¦¹­n¦b«á­±¥[­Ó step -1¡A
stepªí¥Ü¼Æ­È¨C¦¸¸õªº¶¡¹j¡C

TOP

¦^´_ 1# spermbank

x = Application.WorksheetFunction.CountA(Range("A:A")) 'Äæ¦ì¦³­È½d³ò­pºâ

¬Ý¤j®a¤ñ¸û±`¥Îªº¤èªk¬O
x = [A65536].End(xlUp).Row 'AÄæ³Ì«á¤@­Ó¸ê®Æªº¦C¸¹
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_  spermbank

x = Application.WorksheetFunction.CountA(Range("A:A")) 'Äæ¦ì¦³­È½d³ò­pºâ

¬Ý¤j ...
ML089 µoªí©ó 2013-11-22 17:32



    Counta ¦³¤@­Ó±ø¥ó¬Oªº­n¬Ý¬ÝÄæ¦ì¤W¤£¯à¦³ªÅ­È¥X²{, ¥X²{ªº¸Ü·|¤Öºâ¤F.
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¦³§ó²³æªº¡G

x = Sheets("¤u§@ªí1").UsedRange.Rows.Count

¤£¹L¥u·|¦^Á`¦@¦æ¼Æ¡A¦pªG¶}ÀY¬OªÅ¥Õªº«h¤£·|­pºâ¶i¥h¡C
§A¦n

TOP

  Sheets("¤u§@ªí1").Select
      x = Application.WorksheetFunction.CountA(Range("A:A")) 'Äæ¦ì¦³­È½d³ò­pºâ
     °²³]X=10
     for i = 3 to x
     next
     ¥i¥H°õ¦æ
     for i = x to 3
     next


¥i¥H§ï¦¨¡G
  1. Sheets("¤u§@ªí1").Select
  2. total = ActiveSheet.UsedRange.Rows.Count
  3. start = 3
  4. For i = total+start To start Step -1
  5. '°õ¦æ
  6. Next
½Æ»s¥N½X
§A¦n

TOP

        ÀR«ä¦Û¦b : ªY½à§O¤H´N¬O²øÄY¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD