- ©«¤l
- 463
- ¥DÃD
- 116
- ºëµØ
- 0
- ¿n¤À
- 580
- ÂI¦W
- 0
- §@·~¨t²Î
- Vista
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-4
- ³Ì«áµn¿ý
- 2017-11-13
|
¦^´_ 1# myleoyes
¦U¦ì«e½ú§A̦n!!
¤p§Ì¬ðµM·Q¨ì³oקï´N¥i¥H¬Ù²¤Q2:S2¸É§UÀx¦s®æ¦p¤U
Sub °õ¦æ()
Dim Rng As Range
If MsgBox("±z½T©wn°õ¦æ¶Ü?", vbYesNo) = vbYes Then
[G1] = "": ActiveWindow.ScrollColumn = 1
ActiveWindow.SmallScroll ToRight:=4
With ActiveSheet
ActiveCell = ""
Set Rng = ActiveCell.Offset(, 7)
Rng = Date
Again:
A = Application.InputBox("¿é¤J¼Æ¾Ú", " ½Ð¿é¤J¼Æ¾Ú", Type:=1)
If A = 0 Or A < 0 Then
Cancel = True: GoTo Again
Else
Selection.Offset(, 8) = A
End If
Again1:
aa = Application.InputBox("¿é¤J¼Æ¦r", " ½Ð¿é¤J¼Æ¦r", Type:=1)
If aa = 0 Or aa < 0 Then
Cancel = True: GoTo Again1
Else
Selection.Offset(, 9) = aa
End If
With Rng.Cells(1, 4)
For Each e In Array(1, 2, 3)
With .Cells(1, e)
.FormulaR1C1 = Cells(1, .Column).FormulaR1C1
If e = 1 Then
ActiveCell.Offset(, 10).Select
If [N4] = "" Then
[Q4] = "=IF(N4="""","""",I4*O4*P4)"
[Q4].Copy
ActiveCell.Select
ActiveSheet.Paste
[Q4] = ""
ElseIf [N4] <> "" Then
[Q4] = "=IF(N4="""","""",I4*O4*P4)"
[Q4].Copy
ActiveCell.Select
ActiveSheet.Paste
End If
ElseIf e = 2 Then
ActiveCell.Offset(, 1).Select
If [N4] = "" Then
[R4] = "=IF(N4="""","""",Q4-L4)"
[R4].Copy
ActiveCell.Select
ActiveSheet.Paste
[R4] = ""
ElseIf [N4] <> "" Then
[R4] = "=IF(N4="""","""",Q4-L4)"
[R4].Copy
ActiveCell.Select
ActiveSheet.Paste
End If
ElseIf e = 3 Then
ActiveCell.Offset(, 1).Select
If [N4] = "" Then
[S4] = "=IF(N4="""","""",R4/(Q4-R4))"
[S4].Copy
ActiveCell.Select
ActiveSheet.Paste
[S4] = ""
ElseIf [N4] <> "" Then
[S4] = "=IF(N4="""","""",R4/(Q4-R4))"
[S4].Copy
ActiveCell.Select
ActiveSheet.Paste
End If
End If
End With
Next
End With
End With
[G:S].EntireColumn.AutoFit
²M³æ
ElseIf vbNo Then
End
End If
[G1].Select
End Sub
ÁÂÁ¦U¦ì«e½ú!! |
|