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

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

¦^´_ 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

¦^´_ 38# GBKEE

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

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

¦^´_ 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 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

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

TOP

¦^´_ 3# GBKEE

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

TOP

        ÀR«ä¦Û¦b : ¨Ã«D¦³¿ú¾{¬O§Ö¼Ö¡A°Ý¤ßµL·\¤ß³Ì¦w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD