ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¿z¿ï§Ö±µªñ1¸Uµ§ªº¸ê®Æ³t«×¶WºC

¿z¿ï§Ö±µªñ1¸Uµ§ªº¸ê®Æ³t«×¶WºC

³o­Ó»Ý¨D¬O³o¼Ë

³o¬O¿z¿ï±ø¥ó  ¦³¤@­Ó¿z¿ïªº°Ï¶¡ ¹ïÀ³¯¸§O
¦p¤U¹Ï:
1.jpg

¥Î³o­Ó¿z¿ïªº±ø¥ó¥h¿z¿ï¤Uªí¤¤«ü©wªº¼Æ¾Ú¬O§_¦b³o­Ó±ø¥óªº°Ï¶¡¤¤

µM«á¶ñ¤J¹ïÀ³ªº¯¸§O
¦p¤U¹Ï:


³o±i¹Ïªº½s¸¹¬O­n¿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¥Ø
  1. Application.ScreenUpdating = False
  2. Dim ¦@´Xµ§¸ê®Æ, ¿ëÃѸê®Æ°_©lÂI, ¿ëÃѸê®Æ¥½ÂI, ²Ö¥[¿ëÃѸê®Æ¼Æ As Integer: Dim ­È1, ­È2, ­È3 As String

  3. If Not TextBox1.Text = "" And Not TextBox2.Text = "" Then
  4. ²Ä´Xµ§¸ê®Æ = 3: ­È1 = TextBox1.Text & ²Ä´Xµ§¸ê®Æ: ¿ëÃѸê®Æ°_©lÂI = 40: ¿ëÃѸê®Æ¥½ÂI = ¿ëÃѸê®Æ°_©lÂI: ²Ö¥[¿ëÃѸê®Æ¼Æ = ¿ëÃѸê®Æ°_©lÂI: ­È3 = "C" & ¿ëÃѸê®Æ¥½ÂI

  5. Do Until Sheets("1012°O¨Æ").Range(­È3).Value = ""
  6. ¿ëÃѸê®Æ¥½ÂI = ¿ëÃѸê®Æ¥½ÂI + 1
  7. ­È3 = "C" & ¿ëÃѸê®Æ¥½ÂI
  8. Loop


  9. Dim °_, °W As String
  10. Do Until Sheets("·|­p±b").Range(­È1).Value = ""

  11. ­È2 = TextBox2.Text & ²Ä´Xµ§¸ê®Æ: ²Ö¥[¿ëÃѸê®Æ¼Æ = ¿ëÃѸê®Æ°_©lÂI


  12. Do Until ²Ö¥[¿ëÃѸê®Æ¼Æ = ¿ëÃѸê®Æ¥½ÂI
  13. °_ = "A" & ²Ö¥[¿ëÃѸê®Æ¼Æ: °W = "B" & ²Ö¥[¿ëÃѸê®Æ¼Æ
  14. If (Sheets("1012°O¨Æ").Range(°_).Value <= (Sheets("·|­p±b").Range(­È1).Value)) Then
  15. If ((Sheets("·|­p±b").Range(­È1).Value) <= Sheets("1012°O¨Æ").Range(°W).Value) Then
  16. 'Sheets("·|­p±b").Range(­È2) = Sheets("1012°O¨Æ").Range("C" & ²Ö¥[¿ëÃѸê®Æ¼Æ): Exit Do
  17. Sheets("1012°O¨Æ").Range("C" & ²Ö¥[¿ëÃѸê®Æ¼Æ).Copy Destination:=Sheets("·|­p±b").Range(­È2): Exit Do
  18. End If
  19. End If
  20. ²Ö¥[¿ëÃѸê®Æ¼Æ = ²Ö¥[¿ëÃѸê®Æ¼Æ + 1
  21. Loop

  22. '========================================================================
  23.    

  24. '=====================================================================================
  25. ²Ä´Xµ§¸ê®Æ = ²Ä´Xµ§¸ê®Æ + 1: ­È1 = TextBox1.Text & ²Ä´Xµ§¸ê®Æ
  26. Sleep 100

  27. Loop
  28. MsgBox ("¿ëÃѤu§@§¹¦¨")
½Æ»s¥N½X
¥H¤U¬O§Ú³]­pªº¤H¾÷¤¶­±:

f.jpg

½Ð°Ý³o¥N½X­n«ç»ò§ï ¤~¯à¥[§Ö³t«×©O? ¶W§xÂZªº..

§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

TOP

¤£¦n·N«ä ¥i¥H½Ðjoey¤j¤j´£¨Ñ½d¨ÒÀɶÜ? §Ú¦b§Aªºblog §ä¤£¨ì³o­Ó½d¨ÒÀÉ XD

TOP

¦^´_ 3# ctjh900801

³oùص¹§A°Ñ¦Ò

http://forum.twbts.com/thread-10758-1-1.html

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD