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

¬Ù²¤Q2:S2¸É§UÀx¦s®æ

¬Ù²¤Q2:S2¸É§UÀx¦s®æ

¦U¦ì«e½ú§A­Ì¦n!!
Sub °õ¦æ()
  Dim Rng As Range
  If MsgBox("±z½T©w­n°õ¦æ¶Ü?", 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
                        [Q2].Copy
                        ActiveCell.Select
                        ActiveSheet.Paste
                    ElseIf e = 2 Then
                        ActiveCell.Offset(, 1).Select
                        [R2].Copy
                        ActiveCell.Select
                        ActiveSheet.Paste
                    ElseIf e = 3 Then
                        ActiveCell.Offset(, 1).Select
                        [S2].Copy
                        ActiveCell.Select
                        ActiveSheet.Paste
                    End If
                End With
            Next
        End With
     End With
         [G:S].EntireColumn.AutoFit
         ²M³æ
    ElseIf vbNo Then
       End
    End If
       [G1].Select
End Sub
         °ÝÃD¦pªþÀÉ»¡©ú
         ½Ðª¾¹Dªº«e½ú,¤£§[½ç±ÐÁÂÁ¦A¤T!!

LeoV66-1.rar (16.2 KB)

¦^´_ 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©w­n°õ¦æ¶Ü?", 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½ú!!

TOP

        ÀR«ä¦Û¦b : ºÉ¦h¤Ö¥»¥÷¡A´N±o¦h¤Ö¥»¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD