Private Sub CommandButton1_Click() Dim A As Integer, B As Integer Range("A3").Select A = ActiveCell.Value B = 2 * A Sheets("第三年").Select ActiveCell(4, 2).Value = B End Sub
Private Sub CommandButton1_Click() Dim A As Integer, B As Integer Range("A3").Select A = ActiveCell.Value B = 2 * A Sheets("第三年").Select ActiveCell(4, 2).Value = B End Sub
Private Sub CommandButton1_Click() Dim A As Integer, B As Integer Range("A3").Select A = ActiveCell.Value B = 2 * A Sheets("第三年").Cells(4, 2).Value = B End Sub
Private Sub CommandButton1_Click() Dim A As Integer, B As Integer Range("A3").Select A = ActiveCell.Value B = 2 + A Sheets("第三年").Cells(4, 2).Value = B End Sub