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

[µo°Ý] ½Ð±Ð¦¹¥¨¶°­n¦p¦ó¼g ?

[µo°Ý] ½Ð±Ð¦¹¥¨¶°­n¦p¦ó¼g ?

e20¨ìe200 ¬°¤½¦¡¦p¤U
A20=IF(Y20="","",Y20/(y20-z20))
A21=IF(Y21="","",Y21/(y21-z21))
....
......
a1µ¥©óe20¨ìe200 ¤§¶¡­Ë¼Æ²Ä¤@µ§"¤£µ¥©óªÅ¥Õ"Àx¦s®æªº­È
¥¨¶°¦p¦ó¼g?

¦^´_ 1# t8899


    ­Ë¼Æ²Ä¤@µ§¤£µ¥©óªÅ¥Õªº­È¡A«üªº¬O³Ì«á¤@µ§¦³¸ê®Æªº­È¶Ü¡H
    ¦pªG¬Oªº¸Ü¡G
  1. sub test
  2. For Each rng In [E20:E200]
  3. If rng <> "" Then [a1] = rng.Value
  4. Next
  5. end sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ t8899 ©ó 2014-3-18 15:12 ½s¿è
    ­Ë¼Æ²Ä¤@µ§¤£µ¥©óªÅ¥Õªº­È¡A«üªº¬O³Ì«á¤@µ§¦³¸ê®Æªº­È¶Ü¡H
    ¦pªG¬Oªº¸Ü¡G
owen06 µoªí©ó 2014-3-18 13:03

´ú¸Õ¤@¤U¡A±zªº¥¨¶°¤j¬ùªá3-4¬í (·Æ¹«·|¥X²{º|¤æª¬)
¤U­±³o¥¨¶°¤£¨ì¤@¬í¡A´£¨Ñµ¹±z°Ñ¦Ò
¤£ª¾¤U­±³o¥¨¶°¬°¦ó·|¤ñ¸û§Ö???
Sub aaa()
For i = 200 To 20 Step -1
    If Cells(i, 5).Value <> "" Then
    Cells(1, 1).Value = Cells(i, 5).Value
    GoTo exitline
    Else
    End If
  Next i
  exitline:
End Sub

TOP

¥»©«³Ì«á¥Ñ t8899 ©ó 2014-3-18 15:28 ½s¿è

³o§ó§Ö,¤@¦æ´N¸Ñ¨M
[a1] = Range("e" & Range("e20:e200").Find("*", , xlValues, , , xlPrevious).Row).Value

TOP

¦^´_ 4# t8899
[A1] = [E:E].Find("*", , xlValues, , , xlPrevious)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD