|
大连清国进销存系统.rar
(87.6 KB, 下载次数: 458)
- Private Sub CommandButton1_Click()
- Dim cnn As New ADODB.Connection
- cnn.Open "provider=microsoft.jet.oledb.4.0;extended properties=excel 8.0;data source=" & ThisWorkbook.FullName
- Sql = "select 序号,'" & Me.DTPicker1.Value & "','" & Range("B4") & "','" & Range("L5") & "',供应商名称,订单号,材料编号,材料名称,[规格/型号],税别状态,单位,数量,单价,币别,金额 " _
- & " from [出入库单$B6:M16]"
- LRow = Sheet2.[a65536].End(3).Row + 1
- Sheet2.Range("a" & LRow).CopyFromRecordset cnn.Execute(Sql)
- Range("c7:M16").ClearContents
- cnn.Close
- Set cnn = Nothing
- Sheet2.Activate
- End Sub
复制代码
|
|