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

[µo°Ý] §Q¥ÎÀx¦s®æ¤¤ªº³¡¤ÀÃöÁä¦r¡A¨ú¥X¦P¤@¦Cªº¬ÛÃö¸ê®Æ

[µo°Ý] §Q¥ÎÀx¦s®æ¤¤ªº³¡¤ÀÃöÁä¦r¡A¨ú¥X¦P¤@¦Cªº¬ÛÃö¸ê®Æ

·Q¤F¦n¤[¡AÁÙ¬O¨SÀYºü¡A¼g±o¶Ã¤C¤KÁV¡CªþÀɤ¤¦³¸Ô²Ó»¡©ú¡A¨D¸Ñ!
test.rar (12.86 KB)
Jess

¤F¸Ñ¤F¡C
ÁÂÁ H¤j©M O¤jªºÀ°¦£¡C§ó­nÁÂÁÂG¤j¡A´X¥G³­¤F§Ú¤@¤U¤Èªº®É¶¡À°§Ú¸Ñ¨M°ÝÃD¡A¯uªº«D±`·PÁÂ!
¥t¥~¡A²Ä¤@­Ó°ÝÃD§Ú·|¦AÄ~Äò§V¤O§äµª®×ªº¡C
Jess

TOP

¥i¥H©ì°Ê³o­Ó¤U©Ô²M³æ¡A¬d¬ÝVBA¤ä´©ªº¤u§@ªí¨ç¼Æ

TOP

¦^´_ 14# Hsieh

1.²Ä¤@­Ó°ÝÃDÁÙ¬O·d¤£À´><
2.©Ò¦³ªº¤u§@ªí¨ç¼Æ¡A¹B¥Î¨ìVBAùس£¬O³oºØÂà´«¤è¦¡¶Ü?
Jess

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-9-17 23:07 ½s¿è

¦^´_ 13# jesscc

Rounddown¬O¤u§@ªí¨ç¼Æ
Ky.Offset(0, 10) = Application.Rounddown((Ky.Offset(0, 9) * 1000 / Ky.Offset(0, 7)),0)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ jesscc ©ó 2011-9-17 22:09 ½s¿è

¦^´_ 12# GBKEE


    §Úªº°ÝÃD´N¦b³o¸Ì
·d¤£À´¬°¤°»ò¥Î¤@­Óª«¥óÅܼƨӨú¥NRange¡A¾ã­Ó§PÂ_¦¡´N¥i¥H¥Î¦h­ÓAnd ³s±µ?

ÁÙ¦³«e­±¨º­Ó²Ä18¦æªº°ÝÃD
¬°¤°»ò³o¼Ë¥i¥H
Ky.Offset(0, 10) = Int(Ky.Offset(0, 9) * 1000 / Ky.Offset(0, 7))

³o¼Ë´N¤£¦æ
Ky.Offset(0, 10) = Rounddown((Ky.Offset(0, 9) * 1000 / Ky.Offset(0, 7)),0)

¦pªG¬O­n¥|±Ë¤­¤J¡A³o¬q¤£ª¾¸Ó¥Î¤°»ò¨ç¼Æ?
Jess

TOP

¦^´_ 11# jesscc
¥Î R1C1 ªí¥Üªk
  1. Sub Test1()
  2.     Dim KY As Range
  3.     With Sheets("Sheet2")
  4.         If .Range("E7").End(xlDown).Row = Rows.Count Then Exit Sub
  5.             For Each KY In .Range(.[E7], .[E7].End(xlDown)).Offset(, 8)  'MÄæ
  6.                 If KY = "" And KY.Offset(, 1) <> "" And KY.Offset(, -1) <> "" Then
  7.                     KY.Offset(, 2) = "=Rounddown(RC[-1]*1000/RC[-3],0)"
  8.                 Else
  9.                     KY.Offset(, 2) = "=RC[-2]*1000/RC[-3]"
  10.                 End If
  11.                     KY.Offset(, 2) = KY.Offset(, 2).Value
  12.             Next
  13.     End With
  14. End Sub
½Æ»s¥N½X

TOP

¦^´_ 10# GBKEE


    ªþ¤W­×§ï«áªºÀɮסA½ÐG¤j¾Þ§@¤@¤U´Nª¾¹D¤F
test.rar (75.72 KB)
Jess

TOP

¦^´_ 9# jesscc
If Range("M7:M" & yRow) = "" And Range("M7:M" & yRow).Office(,1) <> "" And Range("M7:M" & yRow).Office(,-1) <> "" Then

À³¸Ó¬O«ü¦P¤@¦Cªº¸ê®Æ¡A¦Ó¤£¬O­pºâ©Ò¦³ªÅ¥ÕÀx¦s®æ    :   ¨S¬Ý¨ì¦P¤@¦C ªºÅܼƠ 
If Range("M"&¦P¤@¦C) = "" And Range("M" &¦P¤@¦C).Office(,1) <> "" And Range("M" &¦P¤@¦C).Office(,-1) <> "" Then

TOP

¦^´_  jesscc
¨S¦³¤£²z§A ¬O»yªk¿ù»~
If Range("M7:M" & yRow) = "" And Range("N7:N" & yRow)  "" And  ...
GBKEE µoªí©ó 2011-9-17 18:59



    G¤j¡A©êºp§Ú¶K¿ù¤F¡AÀ³¸Ó¬O«ü¦P¤@¦Cªº¸ê®Æ¡A¦Ó¤£¬O­pºâ©Ò¦³ªÅ¥ÕÀx¦s®æ
If Range("M7:M" & yRow) = "" And Range("M7:M" & yRow).Office(,1) <> "" And Range("M7:M" & yRow).Office(,-1) <> "" Then
Range("O7:O" & yRow).Formula = "=Rounddown(N7*1000/L7,0)"
Else
Range("O7:O" & yRow).Formula = "=M7*L7"
End If
¹³¤W­±³o¼Ë¡A»yªk¤£ª¾¿ù¦b­þ¸Ì?
Jess

TOP

        ÀR«ä¦Û¦b : §Ú­Ì³Ì¤jªº¼Ä¤H¤£¬O§O¤H¡D¥i¯à¬O¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD