|
Private Sub CommandButton1_Click() 'Sheets("门诊结算表")
With Sheets("统计表")
If Application.WorksheetFunction.CountIf(.Range("A:A"), Me.转院证.Value) = 0 Then
r = .[a65536].End(xlUp).Row + 1
.Cells(r, 1) = Me.转院证.Value
.Cells(r, 2) = Me.医疗证号.Value
.Cells(r, 3) = Me.姓名.Value
.Cells(r, 4) = Me.性别.Value
.Cells(r, 5) = Me.年龄.Value
.Cells(r, 6) = (Me.[乡]) & Me.[村] & Me.[组].Value
.Cells(r, 7) = Me.科别.Value
.Cells(r, 8) = Me.医院.Value
.Cells(r, 9) = Me.诊断.Value
.Cells(r, 10) = Me.医师.Value
.Cells(r, 11) = Me.日期.Value
End If
End With
End Sub |
|