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

[µo°Ý] ½Ð±Ð§ï¨}³t«×¤èªk

[µo°Ý] ½Ð±Ð§ï¨}³t«×¤èªk

Sub Worksheet()
Dim LastRec As Integer
Dim i As Integer

Worksheets("Oracle").Range("G1").Select
ActiveCell.End(xlDown).Select
     LastRec = ActiveCell.Row
     
For i = 2 To LastRec
Worksheets("Oracle").Range("A" & i).Value = Worksheets("Oracle").Range("G" & i).Value '±NGÄ檺­ÈCOPY¨ìAÄæ

If IsError(Application.VLookup(Worksheets("Oracle").Range("C" & i).Value, Sheets("Follower").Range("A:E"), 5, False)) Then
Worksheets("Oracle").Range("B" & i).Value = ""  °²¦pSHEET ORACLE CÄ檺­È¦bSHEET FOLOWER A¡GEÄæ§ä¤£¨ì¡A´N±NBÄæ³]©wªÅ®æ
Else
Worksheets("Oracle").Range("B" & i).Value = Application.VLookup(Worksheets("Oracle").Range("c" & i).Value, Sheets("Follower").Range("A:E"), 5, False) §_«h±NSHEET ORACLE CÄæ¦bSHEET FOLLOWER´M§ä¬Û¦P¡A¨Ã±N¬Û¦PªºEÄæ­È©ñ¦bSHEET ORACLE BÄæ
End If

Next i
i = i + 1

End Sub

¹B¦æ¤j¬ù7000ROW,¦ý¹B¦æ±o«ÜºC¡A½Ð°Ý¦U¦ì¤j¤j¡A¦³¨S¦³¥i¥H¥[§Ö¹B¦æªº¤èªk¡H

¦^´_ 3# GBKEE

°ª¤H¡A¥i§_À°§Ú¬Ý¬Ý­Óµ{¦¡°ÝÃD¡H
    http://forum.twbts.com/viewthrea ... amp;page=2#pid51122

TOP

If Target.Column = 1 Then   ³o­Ó¦n¹³¬O ·j´M½d³ò  ¥L­n±N Target §ï¦¨  "TT"  ¡A¥u¬O ¬Ý¤F¬Ý¡A·Pı¤£¶¶.....

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-12-14 15:16 ½s¿è

¦^´_ 43# 198188
  1. Do
  2. '
  3. '
  4. MSGBOX J  '¬d¬Ý J=??? ²Å¦X±ø¥ó¶Ü!!
  5. Loop While J=2   
  6. '°õ¦æªº±ø¥ó While (¤@ª½¬O) :  J=2
  7. 'Â÷¶}ªº±ø¥ó UNTIL (ª½¨ì¬O):   J=2
½Æ»s¥N½X
§A¬O­nLoop While J>=2  ??
§A¬O­nLoop While J<>2  ??
§A¬O­nLoop While J<=2  ??
§A¬O­nLoop While J<2     ??

TOP

¦^´_ 42# 198188
2003ª© ¨S¦³EDIT FORMATING RULE ³o¥\¯à
¦ý¦³ «ü¥O[®æ¦¡]->[³]©w®æ¦¡¤Æ±ø¥ó] :¼g¤½¦¡ ,«ü©wÃC¦â
©Î¬OVBA
  1. Option Explicit
  2. Sub Ex()  'Äæ³]©w¦pªGBÄæ¬O­È¤j¹L0 ©M¤£µ¥©óAÄæ´NÅÜÃC¦â
  3.     'Á|¨Ò [A1]:[B1]
  4.     If [B1] >= 0 And [B1] <> [A1] Then
  5.         With Range("A1")
  6.             .Interior.Color = vbYellow  '©³¦â    :¶À
  7.             .Font.Color = vbRed         '¦rÅé¦â  :¬õ
  8.             .Font.Size = 15             '¦rÅé¤Ø¤o:15
  9.         End With
  10.     End If
  11. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-12-14 14:57 ½s¿è

¦^´_ 41# GBKEE
  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.     Dim i As Integer
  7.     Dim j As Integer
  8.     Dim k As Integer
  9.     i = Worksheets("outstanding payments").Range("A" & Worksheets("outstanding payments").Rows.Count).End(xlUp).Row
  10.     fs = "C:\Users\patrick.HKG\Desktop\payment report 2012.xlsx"
  11.     Set Wb = Workbooks.Open(fs)   
  12.     With Worksheets("New form of payment report")
  13.       j = Worksheets("New form of payment report").Range("E" & Worksheets("New form of payment report").Rows.Count).End(xlUp).Row   
  14.     End With   
  15.     Do   
  16.     ThisWorkbook.Activate   
  17.     If Wb.Worksheets("New form of payment report").Range("k" & j).Value = Date And Wb.Worksheets("New form of payment report").Range("h" & j).Value >= 0.95 Then   
  18.     If IsError(Application.VLookup(Wb.Worksheets("New form of payment report").Range("B" & j).Value, Worksheets("outstanding payments").Range("A:A"), 1, False)) Then   
  19.     Worksheets("outstanding payments").Range("A" & i + 1) = Wb.Worksheets("New form of payment report").Range("B" & j).Value
  20.     Worksheets("outstanding payments").Range("F" & i + 1) = Wb.Worksheets("New form of payment report").Range("K" & j).Value
  21.     End If
  22.     i = i + 1
  23.     End If
  24.     j = j - 1   
  25.    Loop While j = 2  
  26.    
  27.    Wb.Close 0
  28. End Sub
½Æ»s¥N½X
½Ð°Ý
Do
Loop While
¬O¤£¬O¼g¿ù¤F¡H¥L¤£À´±o´`Àô°µ

TOP

¦^´_ 38# GBKEE

²Ä38¶K
  ½Ð°Ý¥i§_¦bexcel ªºEDIT FORMATING RULE³]©w
¦bAÄæ³]©w¡G¦pªGBÄæ¬O­È¤j¹L0 ©M¤£µ¥©óAÄæ´NÅÜÃC

TOP

¦^´_ 40# 198188
¨º»ò¬O¤£¬O­n¦bworksheets«e­±¥[¤Wworkbooks?¦ý¬O¤W¤@¥y¦WºÙ¨S¦³°ÝÃD¡H
¤u§@ªí¦WºÙµL»~!!  µ{¦¡½X: µ{§Ç©Ò¦bªº¬¡­¶Ã¯¤§¤u§@ªí, ¤£»Ý¥[¤W  workbooks  ¨ä¥L¬¡­¶Ã¯ªº¤u§@ªí­n¥[workbooks
Àx¦s®æ­n³]©³¦â,¥Î¿ý»s·s¥¨¶°¥i±oµ{¦¡½X

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-12-13 14:45 ½s¿è

¦^´_ 38# GBKEE
  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.     Dim i As Integer
  7.     Dim j As Integer
  8.     Dim k As Integer
  9.     i = Worksheets("outstanding payments").Range("A" & Worksheets("outstanding payments").Rows.Count).End(xlUp).Row
  10.     fs = "C:\Documents and Settings\USER\®à­±\payment report 2012.xlsx"
  11.     Set Wb = Workbooks.Open(fs)
  12.     With Worksheets("New form of payment report")
  13.       j = Worksheets("New form of payment report").Range("E" & Worksheets("New form of payment report").Rows.Count).End(xlUp).Row
  14.     End With
  15.    Do
  16.     If Wb.Worksheets("New form of payment report").Range("k" & j).Value = Date And Wb.Worksheets("New form of payment report").Range("h" & j).Value >= 0.95 Then   
  17.     If IsError(Application.VLookup(Wb.Worksheets("New form of payment report").Range("B" & j).Value, Worksheets("outstanding payments").Range("A:A"), 1, False)) Then   
  18.     Worksheets("outstanding payments").Range("A" & i + 1) = Wb.Worksheets("New form of payment report").Range("B" & j).Value
  19.     Worksheets("outstanding payments").Range("F" & i + 1) = Wb.Worksheets("New form of payment report").Range("H" & j).Value
  20.     End If
  21.      j = j - 1
  22.      i = i + 1
  23.     End If
  24.     Loop While j = 1   
  25.    Wb.Close 0
  26. End Sub
½Æ»s¥N½X
¨º»ò¬O¤£¬O­n¦bworksheets«e­±¥[¤Wworkbooks?¦ý¬O¤W¤@¥y¦WºÙ¨S¦³°ÝÃD¡H

TOP

¦^´_ 38# GBKEE


    ¥t¥~½Ð°Ý¥i§_¦bexcel ªºEDIT FORMATING RULE³]©w
¦bAÄæ³]©w¦pªGBÄæ¬O­È¤j¹L0 ©M¤£µ¥©óAÄæ´NÅÜÃC¦â

TOP

        ÀR«ä¦Û¦b : ¡i¬°µ½Ävª§¡j¤H¥Í­n¬°µ½Ävª§¡A¤À¬í¥²ª§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD