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

»y¥y°ÝÃD

»y¥y°ÝÃD

¥»©«³Ì«á¥Ñ basarasy ©ó 2010-7-1 22:51 ½s¿è

½Ð°Ý³o¥y¦p¦ó¥´¤~¥¿½T.
If Range("B6").Value = "" then  [a1]=1

¬°¦ó¤£¥i¥H³o¼Ë¥´ Range("B6").Value = ""  ??

¤£ª¾¿ù¦b¨º¸Ì><
dss = 29
ess = 17
sss = 0
Do
If dss = 34 Then ess = ess + 2

If Range(ess & dss).Select = "" Then
Range(ess & dss).Select
    With Selection.Interior
        .Pattern = xlSolid
        .PatternColorIndex = xlAutomatic
        .ThemeColor = xlThemeColorDark1
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With
    With Selection.Interior
        .Pattern = xlNone
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With
   
    Else
    Range(ess & dss).Select
        With Selection.Interior
        .Pattern = xlSolid
        .PatternColorIndex = xlAutomatic
        .Color = 65535
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With
End If

dss = dss + 1
sss = sss + 1
Loop Until sss = 10
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

If Range("B6").Value = "" then  [a1]=1 ¥¿ÚÌ¡A¦Z­±ªº¥i¥H¥Îcells来选择
学习

TOP

¦^´_ 13# basarasy

¦pªG°í«ù­n¥ÎVBA¡A½Ð°Ñ¦Ò
Sub Ex()
    Set Rng = Range("A1:B4")
    For Each a In Rng
        If Not IsEmpty(a) Then a.Interior.Color = 65535 Else a.Interior.Pattern = xlNone
    Next
End Sub

TOP

¦^´_ 12# victorl

ÁÂÁÂ victorl¤j¤j.
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 11# basarasy


    123.gif

TOP

¦^´_ 10# Hsieh

§Ú¬O·Q°µ³o­Ó.

yy.JPG (35.77 KB)

yy.JPG

50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-7-2 20:28 ½s¿è

¦^´_ 8# basarasy
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

[ª©¥DºÞ²z¯d¨¥]
  • Hsieh(2010-7-2 20:13): ½Ð¤W¶ÇÀÉ®×

¦^´_ 7# Hsieh

¤£¯à¥Î><

hj.JPG (73.53 KB)

hj.JPG

50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¨Ï¥Î®æ¦¡¤Æ±ø¥ó§Y¥i
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 5# GBKEE

¨ä¹ê§Ú¬O·Q¼g
eg.  if a1:b3="" then  ®æ¬O¥Õ¦â  Else  ®æ¬O¶À¦â

a1 ¦³ªF¦è ®æ¬O¥Õ¦â
b2 ÉNªF¦è ®æ¬O¶À¦â
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD