¼ÐÃD:
¿z¿ï§Ö±µªñ1¸Uµ§ªº¸ê®Æ³t«×¶WºC
[¥´¦L¥»¶]
§@ªÌ:
ctjh900801
®É¶¡:
2013-10-21 19:28
¼ÐÃD:
¿z¿ï§Ö±µªñ1¸Uµ§ªº¸ê®Æ³t«×¶WºC
³oӻݨD¬O³o¼Ë
³o¬O¿z¿ï±ø¥ó ¦³¤@Ó¿z¿ïªº°Ï¶¡ ¹ïÀ³¯¸§O
¦p¤U¹Ï:
[attach]16406[/attach]
¥Î³oÓ¿z¿ïªº±ø¥ó¥h¿z¿ï¤Uªí¤¤«ü©wªº¼Æ¾Ú¬O§_¦b³oÓ±ø¥óªº°Ï¶¡¤¤
µM«á¶ñ¤J¹ïÀ³ªº¯¸§O
¦p¤U¹Ï:
[attach]16407[/attach]
³o±i¹Ïªº½s¸¹¬On¿z¿ïªºÈn®Ú¾Ú¿z¿ïªº±ø¥ó ¶ñ¤J¬Û¹ïÀ³ªº¯¸§O¨ì¥N¸¹¤¤
¸ê®Æµ§¼Æ¤@¤d¦h¦æªº®ÉÔ ³t«×«Ü§Ö¨S¤°»ò°ÝÃD ¦ý·í¼Æ¾Ú¨ì±µªñ¤@¸U¦æ®É ³t«×´NÅܱo«ÜºC
¥H¤U¬O§Úªº¥N½X ¿z¿ïªº±ø¥ó¦³¼W¥[ªº»Ý¨D©Ê ©Ò¥H§Ú±Nµ{¦¡³]p¦p¤U ½Ð¦U¦ì¹L¥Ø
Application.ScreenUpdating = False
Dim ¦@´Xµ§¸ê®Æ, ¿ëÃѸê®Æ°_©lÂI, ¿ëÃѸê®Æ¥½ÂI, ²Ö¥[¿ëÃѸê®Æ¼Æ As Integer: Dim È1, È2, È3 As String
If Not TextBox1.Text = "" And Not TextBox2.Text = "" Then
²Ä´Xµ§¸ê®Æ = 3: È1 = TextBox1.Text & ²Ä´Xµ§¸ê®Æ: ¿ëÃѸê®Æ°_©lÂI = 40: ¿ëÃѸê®Æ¥½ÂI = ¿ëÃѸê®Æ°_©lÂI: ²Ö¥[¿ëÃѸê®Æ¼Æ = ¿ëÃѸê®Æ°_©lÂI: È3 = "C" & ¿ëÃѸê®Æ¥½ÂI
Do Until Sheets("1012°O¨Æ").Range(È3).Value = ""
¿ëÃѸê®Æ¥½ÂI = ¿ëÃѸê®Æ¥½ÂI + 1
È3 = "C" & ¿ëÃѸê®Æ¥½ÂI
Loop
Dim °_, °W As String
Do Until Sheets("·|p±b").Range(È1).Value = ""
È2 = TextBox2.Text & ²Ä´Xµ§¸ê®Æ: ²Ö¥[¿ëÃѸê®Æ¼Æ = ¿ëÃѸê®Æ°_©lÂI
Do Until ²Ö¥[¿ëÃѸê®Æ¼Æ = ¿ëÃѸê®Æ¥½ÂI
°_ = "A" & ²Ö¥[¿ëÃѸê®Æ¼Æ: °W = "B" & ²Ö¥[¿ëÃѸê®Æ¼Æ
If (Sheets("1012°O¨Æ").Range(°_).Value <= (Sheets("·|p±b").Range(È1).Value)) Then
If ((Sheets("·|p±b").Range(È1).Value) <= Sheets("1012°O¨Æ").Range(°W).Value) Then
'Sheets("·|p±b").Range(È2) = Sheets("1012°O¨Æ").Range("C" & ²Ö¥[¿ëÃѸê®Æ¼Æ): Exit Do
Sheets("1012°O¨Æ").Range("C" & ²Ö¥[¿ëÃѸê®Æ¼Æ).Copy Destination:=Sheets("·|p±b").Range(È2): Exit Do
End If
End If
²Ö¥[¿ëÃѸê®Æ¼Æ = ²Ö¥[¿ëÃѸê®Æ¼Æ + 1
Loop
'========================================================================
'=====================================================================================
²Ä´Xµ§¸ê®Æ = ²Ä´Xµ§¸ê®Æ + 1: È1 = TextBox1.Text & ²Ä´Xµ§¸ê®Æ
Sleep 100
Loop
MsgBox ("¿ëÃѤu§@§¹¦¨")
½Æ»s¥N½X
¥H¤U¬O§Ú³]pªº¤H¾÷¤¶±:
[attach]16408[/attach]
½Ð°Ý³o¥N½Xn«ç»ò§ï ¤~¯à¥[§Ö³t«×©O? ¶W§xÂZªº..
§@ªÌ:
joey0415
®É¶¡:
2013-10-22 11:20
§Q¥Îexcel»Psql¥\¯à¡A´N¯à§ïÅܳo¨Ç¡I¤£¥Î³o»ò³Â·Ð¡I§Y¨Ï¬Oexcel 2003 ¤]»´ÃP°µ¨ì
¨Ò¦p¡Ghttp://blog.bestdaylong.com/2013/09/excelsql.html
sql ¥i¥H¦hÓ±ø¥ó¡A³t«×¤S§Ö¡A¸ê®Æ¼Æ¦Ê¸Uµ§¤]¦æ¡K
¦^´_
1#
ctjh900801
§@ªÌ:
ctjh900801
®É¶¡:
2013-10-24 08:32
¤£¦n·N«ä ¥i¥H½Ðjoey¤j¤j´£¨Ñ½d¨ÒÀɶÜ? §Ú¦b§Aªºblog §ä¤£¨ì³oÓ½d¨ÒÀÉ XD
§@ªÌ:
joey0415
®É¶¡:
2013-11-7 10:59
¦^´_
3#
ctjh900801
³oùص¹§A°Ñ¦Ò
http://forum.twbts.com/thread-10758-1-1.html
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)