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

[µo°Ý] «æ¡I½Ð°Ý°ª¤H¥i¥HÀ°¦£¸Ñ¨M§Úªº°ÝÃD¡H

[µo°Ý] «æ¡I½Ð°Ý°ª¤H¥i¥HÀ°¦£¸Ñ¨M§Úªº°ÝÃD¡H

®à­±.rar (1004.63 KB)
Sub HK()

Dim FRng As Range

Dim A As Range, Rng As Range
Dim i As Integer

fs = "C:\Documents and Settings\USER\®à­±\payment report 2012.xlsx"

'fs = ThisWorkbook.Path & "\payment report 2012.xlsx"
Set wb = Workbooks.Open(fs)

With ThisWorkbook.Worksheets("2012")

For Each A In .Range(.[A2], .Range("A1").End(xlDown))

   Set FRng = wb.Sheets("New form of payment report").Range("B65536").End(xlUp).Find(A, lookat:=xlWhole)

   If Not FRng Is Nothing Then

      If FRng.Offset(, 6).Value > 0.95  and A.Offset(, 5) ="" ©Î¡§¤å¦r¡¨ Then
          A.Offset(, 5) = FRng.Offset(, 9).Value
         If Rng Is Nothing Then Set Rng = A.Offset(, 5) Else Set Rng = Union(Rng, A.Offset(, 5))
       End If
    End If
      Set FRng = Nothing
Next
End With

wb.Close 0

End Sub

¥Ñ©óPAYMENT REPORT 2012¤ºªºSO#¦³­«½Æ¡A¥H¤Wªºvba¬O´M§ä²Ä¤@­Ó¬Û¦PªºSO#¡A½Ð°Ý¦³µL¤èªk´M§ä³Ì«á¤@µ§¬Û¦PªºSO¡­¡H
¥t¥~¦bPAYMENT REPORT 2012¤º§ä¨ì«á¡A¦pªGpaid percentage¤@Äæ²Å¦X¦Ê¤À¤ñ95©Î¥H¤W¡A¥H¤Î¦bOUTSTANDING PAYMENTS¤ºCHINA/HK PAY¤@Äæ¦pªG¬OªÅ®æ´NÅã¥ÜPAYMENT REPORT 2012¤ºpaid date¤@Ä檺­È¡C¦pªG¦bOUTSTANDING PAYMENTS¤ºCHINA/HK PAY¤@Äæ¬O¤å¦r´NÅã¥ÜPAYMENT REPORT 2012¤ºpaid date¤@Ä檺­È¥[­ì¥»ªº¤å¦r¡C¦ý¦pªG¬O¤é´Á´NCHINA/HK PAY¤@Ä椣ÅÜ¡C

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2012-11-17 08:40 ½s¿è

¦^´_ 1# 198188
¸Õ¸Õ  Set FRng = wb.Sheets("New form of payment report").Range("B:B").Find(A, lookat:=xlWhole, SearchDirection:=xlPrevious)

TOP

¦^´_ 2# stillfish00

[attach]13168[/attach] Outstanding Payments.rar (665.87 KB)
  Sub HK()

Dim FRng As Range

Dim A As Range, Rng As Range
Dim i As Integer

fs = "C:\Users\Desktop\payment report 2012.xlsx"

'fs = ThisWorkbook.Path & "\payment report 2012.xlsx"'ͬһĿ?

TOP

Outstanding Payments.rar (665.87 KB) payment report 2012.rar (412.31 KB) ¦^´_ 3# 198188

Sub HK()
Dim FRng As Range
Dim A As Range, Rng As Range
Dim i As Integer
fs = "C:\Users\Desktop\payment report 2012.xlsx"
'fs = ThisWorkbook.Path & "\payment report 2012.xlsx"'¦P¤@¥Ø¿ý®É¨Ï¥Î
Set wb = Workbooks.Open(fs)
With ThisWorkbook.Worksheets("2012")
For Each A In .Range(.[A2], .Range("A1").End(xlDown))
    Set FRng = wb.Sheets("New form of payment report").Range("B:B").Find(A, lookat:=xlWhole, SearchDirection:=xlPrevious)
    If Not FRng Is Nothing Then
       If FRng.Offset(, 6).Value >= 0.95  and A.Offset(, 5) = "" Then
          A.Offset(, 5) = FRng.Offset(, 9).Value 'Åý2012ªºFÄæµ¥©óNEW FORM OF PAYMENT REPORT ªºK Äæ
          If Rng Is Nothing Then Set Rng = A.Offset(, 5) Else Set Rng = Union(Rng, A.Offset(, 5))
       End If
    End If
      Set FRng = Nothing
Next
End With
wb.Close 0
End Sub
ÁÂÁÂ~²{¦b¥i¥H§ä¨ì³Ì«á¤@­Ó¬Û¦Pªº¸ê®Æ¡A¦ý¬O¦³¨Ç§ä¤£¨ì¡C¨Ò¦p¡G208935 ©M 208936 ´N¨S¦³¤Ï¬M¡C½Ð°Ý¬O­þ¸Ì¥X²{°ÝÃD¤F¡H

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2012-11-17 11:33 ½s¿è

¦^´_ 4# 198188

¦]¬°¤u§@ªí "2012" ªº [A3055] ¬°ªÅ¥Õ

For Each A In .Range(.[A2], .Range("A1").End(xlDown))
[A3055]¥H¤Uªº³£¤£·|¶]¨ì

TOP

¦^´_ 5# stillfish00


    ÁÂÁÂ~­ì¨Ó¬O³oùØ¥X²{°ÝÃD¡I¥t¥~½Ð°Ý¦p¦óÅý¥¦¿ë»{Àx¦s®æ¤º¬O§_¤é´ÁÁÙ¬O¤å¦r¡H

TOP

¦^´_ 6# 198188
¬O¤£¬O¤é´Á
    isdate([A1])
¬O¤£¬O¼Æ¦r
   isnumeric([A1])
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD