- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 277
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-12-23
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2012-8-7 00:13 ½s¿è
¦^´_ 12# ©P¤j°¶
¹Ï¤ù®æ¦¡ªº¹w³]ȬO¤j¤p¦ì¸mÀHÀx¦s®æ¦ÓÅÜ
¬°½T«O¹Ï¤ù·|ÀHÀx¦s®æ²¾°Ê- Private Sub Label1_Click() '·s¼W¸ê®Æ
- Dim Ar(), A As Range, B As Range, C As Range, MyPic As Shape
- Set C = Sheet1.[A:A].Find(TextBox1.Text, lookat:=xlWhole)
- If Not C Is Nothing Then MsgBox ("¾Ç¸¹«½Æ¡A½Ð«·sÀˬd"): Exit Sub
- fd = ThisWorkbook.Path & "\"
- If Dir(fd & "Temp.bmp") <> "" Then Kill fd & "Temp.bmp"
- SavePicture Image1.Picture, fd & "Temp.bmp"
- obs = Array("TextBox1", "TextBox2", "TextBox3", "TextBox4", "TextBox5", "TextBox6", "ComboBox1", "TextBox7", "TextBox8", "TextBox9", "TextBox10", "TextBox11", "ComboBox2")
- For i = 0 To 12
- ReDim Preserve Ar(i)
- Ar(i) = Controls(obs(i)).Text
- Next
- With Sheet1
- Set A = .Cells(.Rows.Count, 1).End(xlUp).Offset(1)
- A.RowHeight = 79.8
- Set B = A.Offset(, 13)
- A.Resize(, 13) = Ar
- Set MyPic = .Shapes.AddPicture(fd & "Temp.bmp", msoFalse, msoCTrue, B.Left, B.Top, B.Width, B.Height)
- MyPic.Placement = xlMoveAndSize '³]©w¹Ï¤ù¤j¤p¦ì¸mÀHÀx¦s®æ§ïÅÜ
- .Range("A3").CurrentRegion.Sort key1:=.[A4], header:=xlYes '±Æ§Ç
- End With
- Unload Me: UserForm1.Show
- End Sub
½Æ»s¥N½X |
|