- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 11# ©P¤j°¶ - Private Sub Label6_Click()
- Application.ScreenUpdating = False
- With Workbooks.Open(ThisWorkbook.Path & "\û¤u¸ê®Æªí.xlsx")
- If ComboBox1 <> "" Then
- With .Sheets(ComboBox1.Text)
- Set Rng = .Columns("A").Find(TextBox1, lookat:=xlWhole)
- If Rng Is Nothing Then
- .Cells(.Rows.Count, 1).End(xlUp).Offset(1, 0).Resize(, 4) = Array(TextBox1, TextBox2, TextBox3, TextBox4) '¥¼¦³¸ê®Æ¡A·s«Ø
- Else
- yn = MsgBox("©m¦W¤w¦s¦b¡A¬O§_Âл\?", vbYesNo)
- If yn = 6 Then
- Rng.Resize(, 4) = Array(TextBox1, TextBox2, TextBox3, TextBox4) 'Âл\ì¸ê®Æ
- Else
- k = Application.CountIf(.Columns("A"), Rng & "*")
- .Cells(.Rows.Count, 1).End(xlUp).Offset(1, 0).Resize(, 4) = Array(Rng & k, TextBox2, TextBox3, TextBox4) '·s«Ø¸ê®Æ
- End If
- End If
- End With
- .Close 1
- End If
- End With
- End Sub
½Æ»s¥N½X |
|