訪客只能看到部份內容,免費 加入會員 或由臉書 Google 可以看到全部內容
Sub TEST() Dim i As Integer Dim j As Integer Dim k As Integer j = Sheets("A").Cells(1, 1) Sheets("A").Select For i = 1 To 2 Step 1 k = Sheets("A").Cells(i, 2) j = j - k MsgBox (j) Next End Sub