请半条毛毛和各位大侠指教.还想向你请教些问题:
Private Sub CommandButton2_Click()
[j3] = [j3] + 1
With Sheets("入库明细")
For i = 6 To [b65536].End(xlUp).Row (i是什么参数,为什么取i=6)
t = .[b65536].End(xlUp).Row (t是什么参数,)
If Cells(i, "g") <> "" Then (这行是什么意思?)
.Range("a" & t + 1) = Range("c" & i)
.Range("b" & t + 1) = Range("d" & i)
.Range("c" & t + 1) = Range("e" & i)
.Range("d" & t + 1) = Range("f" & i)
.Range("e" & t + 1) = Range("g" & i)
.Range("f" & t + 1) = Range("h" & i)
.Range("g" & t + 1) = Range("i" & i)
.Range("h" & t + 1) = Range("j" & i)
.Range("i" & t + 1) = Range("k" & i)
.Range("j" & t + 1) = [d3]
.Range("k" & t + 1) = [d4]
.Range("l" & t + 1) = [f3]
.Range("m" & t + 1) = [f4]
.Range("n" & t + 1) = [j3]
.Range("o" & t + 1) = [j4]
End If
Next i
End With
Range("c6:c15,d3,d4,f4,j4,g6:g15,j6:j15").Select
Range("d3").Activate
Selection.ClearContents
Range("d3").Select
End Sub
请问上段VBA是什么意思?
[此贴子已经被作者于2005-7-19 15:32:03编辑过] |