°õ¦æµ{¦¡·|§ïÅÜÀx¦s®æ®æ¦¡¤¤Âê©wªº°ÝÃD
- ©«¤l
- 365
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 406
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-12-11
- ³Ì«áµn¿ý
- 2024-8-24
|
°õ¦æµ{¦¡·|§ïÅÜÀx¦s®æ®æ¦¡¤¤Âê©wªº°ÝÃD
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Intersect(Target, [B5:B90000]) Is Nothing Then
Range("O" & Target.Row).Formula = "=IF(MOD(RC[-13],100)=0,R[-1]C,INT(RC[-13]/100))"
ElseIf Not Intersect(Target, [F5:F90000]) Is Nothing Then
Range("S" & Target.Row).Formula = "=IF(RC[-13]=1,IF(AND(RC[-14]>=RC[-15],R[-1]C[-14]<=R[-1]C[-16],R[1]C[-14]<=R[1]C[-16]),1,IF(AND(RC[-14]<=RC[-16],R[-1]C[-14]>=R[-1]C[-15],R[1]C[-14]>=R[1]C[-15]),-1,0)),0)"
End If
Application.EnableEvents = True
End Sub
½Ð°Ýª©¤W¤j¤j¡A·í§Ú±N¥Ø¼Ð(OÄæ)Àx¦s®æ®æ¦¡¤¤ªºÂê©w¨ú®ø¤Ä¿ï¡AµM«á±N¬¡¶Ã¯Âê°_¨Ó«á¡A°õ¦æ¤Wzµ{¦¡½X¡A·|¥X²{¸ê®ÆµLªk¼g¤Jªºª¬ªp¡AµM«á§Ú±N¬¡¶Ã¯¸Ñ¶}«á¡A±NÀx¦s®æ®æ¦¡¥´¶}¡A·|µo²{Âê©wªº¨ºÓÄæ¦ì³Q¦Û°Ê¤Ä¿ï¤F¡A¦pªG§Ú«ö°»¿ù«h³oÄæ¡÷Range("O" & Target.Row).Formula = "=IF(MOD(RC[-13],100)=0,R[-1]C,INT(RC[-13]/100))"·|¤Ï¥Õ¡A½Ð°Ýª©¤W¤j¤j¬°¤°»ò·|³o¼Ë??n¦p¦óקï©O? |
|
|
|
|
|
|