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

[µo°Ý] ¨ú®øµÛ¦â

[µo°Ý] ¨ú®øµÛ¦â

Dear,
Range("J4:Y" & xRow)³£¬O¦³µÛ¦âªº,§Ú·QÅýRange>0«h¨ú®øµÛ¦â,¦ý¥H¤Uµ{¦¡·|§âRange¤ºµL½×¬O§_>0¥þ¨ú®øµÛ¦â,
¥i§_À°¦£¬Ý¤U»yªk¤W¬O§_¦³»~?
¨ú®øµÛ¦â.rar (25.83 KB)
  1. Sub ¨ú®øµÛ¦â()
  2. Dim Sh As Worksheet, c As Range
  3. Set Sh = Workbooks("¨ú®øµÛ¦â.xlsx").Sheets("2" & "")
  4. Sh.Activate
  5. xRow = Cells(Cells.Rows.Count, "B").End(xlUp).Row '®Æ¸¹
  6. Set xRng = Range("J4:Y" & xRow)
  7.     With Sh
  8.         Sh.Activate
  9.         With xRng.Interior
  10.             For Each c In xRng
  11.             If c > 0 Then
  12.                 .Pattern = xlNone '¨ú®øµÛ¦â
  13.                 .TintAndShade = 0
  14.                 .PatternTintAndShade = 0
  15.             End If
  16.             Next
  17.         End With
  18.     End With
  19. End Sub
½Æ»s¥N½X

Sub ¨ú®øµÛ¦â()
Dim Sh As Worksheet, c As Range
Set Sh = Workbooks("¨ú®øµÛ¦â.xlsx").Sheets("2" & "")
Sh.Activate
xRow = Cells(Cells.Rows.Count, "B").End(xlUp).Row '®Æ¸¹
Set xRng = Range("J4:Y" & xRow)
For Each c In xRng
    If c > 0 Then
       c.Interior.ColorIndex = xlNone '¨ú®øµÛ¦â
    End If
Next
End Sub

TOP

¦^´_ 2# ­ã´£³¡ªL
Thank u.

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD