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

½ÐÀ°¦£Â½Ä¶¤@¤Uµ{¦¡

¦^´_ 14# c_c_lai


    §Ú¸Õ¹L±NH28§ï¦¨20% ©ÎªÌ100%¡A¦ý¬O¤´µM¨S¦³¤ÏÀ³¡C
¥t¥~Set FRng = Wb.Sheets("New form of payment report").Range("k:k").Find(Date, lookat:=xlWhole, SearchDirection:=xlPrevious) ¬O¤£¬O¤£°±¦a¦V¤W§ä¡H¨º»òK28¤@¦C¹F¤£¨ì­n¨D¡A¤£¬O·|¦A¦V¤W´M§ä¶Ü¡H

TOP

¦^´_ 13# 198188

TOP

¦^´_ 12# c_c_lai


    ¦³ªÅ¦C´NµLªk¹B¦æ?¦ý¬O§Ú¤§«e¤]¥Î³o¥y´M§äBÄæ¦p¦³¦ÓHÄæ¦Ê¥÷¤ñ¹F¤E¤Q¤­©Î¥H¤W´N±NKÄæ¤é´Á¶Ç¦^!¦P¼Ë¦³ªÅ¦C¦ý¹B§@´NµL°ÝÃD,¬O¦ó³B¥X¿ù?

TOP

¦^´_ 10# 198188
°²³] K Äæ­ì¥»¤§¤é´Á¬°  12/8¡A ¬°°t¦X´ú¸Õ±N¥¦­Ì§¡§ï¦¨ 12/9 ¤µ¤é¡C
Set FRng = Wb.Sheets("New form of payment report").Range("k:k").Find(Date, lookat:=xlWhole, SearchDirection:=xlPrevious)
«h FRng ·j´Mµ²ªG¬O«ü¦V FRng.Address : "$K$28" ¸Ó±ø¥ó§k¦X¤§³Ì«á¤@¶µ¡A
¦Ó¸Ó¦C H Äæ FRng.Offset(, -3).Value : 0 (¸ÓÄæ«YªÅ¥ÕÄæ)¡A
µ²½×¬O If FRng.Offset(, -3).Value >= 0.95 Then ¤£¦¨¥ß¡C

TOP

¦^´_ 9# c_c_lai
  1. Option Explicit

  2. Sub ex()

  3.     Dim FRng As Range, Wb As Workbook

  4.     Dim A As Range, Rng As Range

  5.     Dim fs As String, xi As Integer
  6.     fs = "C:\Documents and Settings\USER\®à­±\payment report 2012.xlsx"

  7.     Set Wb = Workbooks.Open(fs)

  8.     Set FRng = Wb.Sheets("New form of payment report").Range("k:k").Find(Date, lookat:=xlWhole, SearchDirection:=xlPrevious) '¦bb.xlsx ªºKÄæ´M§äµ¥·í¤éªº¤é´Áªº¤@¦C

  9.     If Not FRng Is Nothing Then                 '°²¦p§ä¨ì

  10.         If FRng.Offset(, -3).Value >= 0.95 Then '°²¦pb.xlsx ³o¦CªºHÄ檺­È¤j¹L©Îµ¥©ó0.95

  11.             '*** Workbooks(A)-> A³oÅܼƦr¦ê¨S¦³¨£¨ì  ****

  12.             Set Rng = Workbooks("outstanding payments").Sheets("outstanding payments").Range("a:a").Find(FRng.Offset(, -9), lookat:=xlWhole, SearchDirection:=xlPrevious)   ' ¦ba.xlsx ªºAÄæ´M§äb.xlsx ³o¦CªºBÄ檺­È¬O§_¦s¦b

  13.             If FRng Is Nothing Then             '°²¦p§ä¤£¨ì

  14.                 With Workbooks.Open("outstanding payments.xlsm").Sheets("outstanding payments")  '   ¦ba.xlsx ªºAÄæ³Ì«á¤@¦C¥[¤Wb.xlsx ³o¦CªºBÄ檺­È¡A¤Î   ¦ba.xlsx ªºFÄæ³Ì«á¤@¦C¥[¤Wb.xlsx ³o¦CªºKÄ檺­È

  15.                     xi = .UsedRange.Cells(.UsedRange.Count).Row

  16.                     .UsedRange.Cells(xi, "A") = FRng.Offset(, -9).Value

  17.                     .UsedRange.Cells(xi, "F") = FRng.Value
  18.                   
  19.                 End With

  20.             End If

  21.         End If

  22.     End If
  23. Wb.Close 0
  24. End Sub
½Æ»s¥N½X
®ÄªG¬O·Q·ípayment report 2012 ¤ºKÄæ¬O¤µ¤Ñªº¤é´Á¡A¦ÓHÄ檺%¹F¨ì95%©Î¥H¤W¡A¥[¤WBÄ檺 SO#¦boutstanding payments ªí¤º¨S¦³ªº¸Ü¡A´N§âpayment report 2012 ¤ºHÄ檺%¹F¨ì95%©Î¥H¤W¡A¤ÎBÄ檺 SO#¦boutstanding payments ªí¤º¨S¦³ªºSO¡­ ©ñ¦boutstanding payments ªí¤ºªºAÄ檺³Ì«á¤@¦C¤W ¤ÎFÄ檺¤é´Ácopy¹L¥h¬ÛÀ³¦ì¸m¡C
¦p¹Ï¤¤outstanding payment ¶À¦âªº³¡¤À¡C

TOP

¥»©«³Ì«á¥Ñ 198188 ©ó 2012-12-9 09:22 ½s¿è

¦^´_ 9# c_c_lai

C:\Documents and Settings\USER\®à­±
    §Ú¬O¥Îuserªº¦WºÙ¨Ó©R¦W³o¥x¹q¸£¡A©Ò¥H³o¥y¨S¿ù¡C
§Ú­n¶}ªº¥t¤@­Óexcel ¡]b.xlsx¡^¬O¥´¶}¤F¡A¦ý¬O°õ¦æ¨S¦³¤°»ò°µ¥X¨Ó

TOP

¦^´_ 8# 198188
½ÐÀˬd fs = "C:\Documents and Settings\USER\®à­±\b.xlsx"
USER ¬O½Ö¡A ¥¦¶È¬O´£¿ô§A¨º«üªº¬O¾Þ§@¨Ï¥ÎªÌ¡A·íµM§A´N±o´«¤W¥¿¦W¤F¡I

TOP

¦^´_ 4# GBKEE

®à­±.rar (473.14 KB)

¥u¬O¥´¶}¤F¥t¥~¤@­ÓExcel¡A¨ä¥L§¹¥þ¨S¦³¤ÏÀ³¡C   
¬O¤£¬O¦³¨º¨Ç¦a¤è¥X¿ù¤F¡H

TOP

¦^´_ 6# GBKEE


    ÁÙ¨S¸Õ!¦]¬°§Ú¦b¥~­±¥Î¤â¾÷¤WºôµLªk´ú¸Õ!ÁöµM©ú¥Õ·§©À¦ý¦]¬°¦Û¤v»yªk¯à¤O®z,Ãø¥Hªí¹F,©Ò¥H¥ý°Ý²M·¡,¦^¥h¸Õ¥i¥H»´ÃP¨Ç

TOP

¦^´_ 5# 198188
°õ¦æ¤W: ¦³¿ù»~¶Ü? ¨S¦³±o¨ì§Aªº´Á±æ¶Ü?
¨S¿ù»~,¦³±o¨ì§Aªº´Á±æ,¨ºÁÙ¦³¤°»ò??

TOP

        ÀR«ä¦Û¦b : ¤Ñ¤W³Ì¬ü¬O¬P¬P¡A¤H¥Í³Ì¬ü¬O·Å±¡¡C
ªð¦^¦Cªí ¤W¤@¥DÃD