½Ð°Ý¡G¦p¦ó´M§ä¶À¦â©³¦âªºÀx¦s®æ?!
- ©«¤l
- 135
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 165
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-12-9
- ³Ì«áµn¿ý
- 2012-8-27
|
¥»©«³Ì«á¥Ñ FAlonso ©ó 2011-1-17 17:22 ½s¿è
º¥ý¸Ñ¨M®æ¤l©³¦â°ÝÃD
¥Î¤U¦Cµ{¦¡¸Õ¸Õ¨äÃC¦â½s¸¹- Sub abc()
- Dim i
- i = Sheet1.Range("A1").Interior.ColorIndex 'קï¥Ø¼Ð¦a§}
- MsgBox i
- End Sub
½Æ»s¥N½X µM«á- Option Explicit
- Sub choosesheet()
- Dim myyear As String, mystock As String
- Dim myfind As Range, myrange As Range, mycell As Range
- thisworkbook.activate
- myyear = Application.InputBox(myyear, "Enter year")
- If IsNumeric(myyear) Then
- If myyear < 2001 Or myyear > 2010 Then
- MsgBox "Out of Range"
- Exit Sub
- Else
- Sheets(myyear).Activate
- End If
- Else
- MsgBox "Not A Number"
- Exit Sub
- End If
- mystock = Application.InputBox(mystock, "Enter Stock Name")
- With Sheets(myyear)
- Set myfind = .Rows(1).Find(what:=mystock, after:=.[b1], lookat:=xlPart)
- If myfind Is Nothing Then
- MsgBox "No Findings"
- Else
- Set myrange = .Range(myfind, myfind.End(xlDown))
- For Each mycell In myrange
- If mycell.Interior.ColorIndex = 6 Then
- mycell.Activate
- Exit For
- End If
- Next
- End If
- End With
- End Sub
½Æ»s¥N½X ¿é¤J¦~¥÷¤Î¨äªÑ²¼¥N¸¹©Î¦WºÙ,¸Óµ{¦¡«K·|¥h¨ì«ü©w¶À¦¡®æ¤l
½ÐªÖ©w¨CÓcolumn¥u¦³¤@Ó¶À¦â®æ¤l¦Ó¤w,¦pªG¤£¬O¦¹µ{¦¡»Ýn§@קï,Ãþ¦üfindnext + loop xxxx<>xxx.address¤§Ãþªº
¦³°ÝÃD¦Acall§Ú |
|
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X
|
|
|
|
|
- ©«¤l
- 47
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 116
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-1-14
- ³Ì«áµn¿ý
- 2012-3-10
|
¦^´_ 10# Hsieh
ì¨Ó2003©M2007ÁÙ¦³³o¼Ëªº¤À§O°Ú!
¹ï©ó§Ú³o¼Ëªºªì¾ÇªÌ¨Ó»¡¡AÅý§Ú¦³¦h¾Ç·|¤@Óª¾ÃÑ!
¯u¬O¦hÁ«§AªºÀ°¦£!^^ |
|
|
|
|
|
|
- ©«¤l
- 47
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 116
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-1-14
- ³Ì«áµn¿ý
- 2012-3-10
|
¦^´_ 5# oobird
ÁÂÁ§AªºÀ°¦£! |
|
|
|
|
|
|
- ©«¤l
- 47
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 116
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-1-14
- ³Ì«áµn¿ý
- 2012-3-10
|
¦^´_ 7# linshin1999
¬OColorIndex ¬O6¨S¦³¿ù!
¯u¤ßªºÁÂÁ§AªºÀ°¦£! |
|
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
|
V98
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
¤ì¤uª©¥D§A¦n:¦³Ãö Interior.ColorIndex ¨º¸Ì¥i¥H§ä¨ì List, ¦pªGª¾¹D½Ð§iª¾,ÁÂÁÂ!!
linshin1999 µoªí©ó 2011-1-17 09:25
For I = 1 To 56
Cells(I, 1).Interior.ColorIndex = I
Next
³o¼Ë¶]¤@¤U´N¦³¤F |
|
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
¦^´_ 4# candy516
candy©p¦n:º¥ý©pn½T©w ColorIndex ¬O¤£¬O¤ì¤uª©¥D©Ò´£¨Ñªº "6", ¦]¬°¶À¦â¦³«Ü¦hºØ¶À,¦pªG¬O¦b³o¸Ì¥X°ÝÃD¨º¥i·|Åý©p¥Õ¦£¤F,¬Ý¤F¤ì¤uª©¥Dªºµ{¦¡À³¸Ó没°ÝÃD,§Ú´£¨Ñµ¹©pªº¬O¤w¸gª¾¹DÀx¦s®æªº¤º®e,©Ò¥H¥Î "ÂE®ü" ¥h§ä, ¦]¬°©p¨Ã没´£¨Ñ ColorIndex È, ©p¤]¥i¥H¥Î¤ì¤uª©¥Dªºµ{¦¡,µM«á±N ColorIndex §ï¤@§ï¸Õ¸Õ¬Ý. |
|
V98
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
¤ì¤uª©¥D§A¦n:¦³Ãö Interior.ColorIndex ¨º¸Ì¥i¥H§ä¨ì List, ¦pªGª¾¹D½Ð§iª¾,ÁÂÁÂ!! |
|
V98
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
Sub YY()
Application.FindFormat.Interior.ColorIndex = 6
With ActiveSheet
For i = 1 To .Columns.Count
Set c = .Columns(i).Find(What:="", After:=.Cells(65536, i), SearchDirection:=xlNext, SearchFormat:=True)
If Not c Is Nothing Then MsgBox c.Address
Next
End With
End Sub |
|
|
|
|
|
|