- ©«¤l
- 41
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 79
- ÂI¦W
- 33
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- SP2
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-25
- ³Ì«áµn¿ý
- 2024-11-8
|
³o¬O§Ú¤§«e¼gªºµ{¦¡½X,»yªk¦p¦³¨Ï¥Î¿ù»~,½Ð¦h¥]²[(¦]¬°§Ú¬O¦Û¾Ç)
¶¶«K¦b¦¹·PÁÂyanto913 ªº¨ó§U!!§Ú¦bDEBUG¤¤,¤w¤F¸Ñ§A¼gªº¤è¦¡
¦A½Ð±Ð¤@¤U!!
Application.Search([a1], [b1])¦bEXCEL VBA¥\¯à¯Á¤Þ¦¡°Ñ¦Ò¤â¥U,§Ú§ä¤£¨ì¥Îªk!!
¥i§_»¡©ú¤@¤U³o¥yªº»yªk¤Î¬°¦ón¥Î"[]"
Sub «ö¶s4_Click()
Dim A As String
A = InputBox("¦r ¦ê", "½Ð ¿é ¤J ¦r ¦ê")
MsgBox A
Cells(1, 5) = A
B = 2
ActiveSheet.Range("I41000").Clear
Do Until InStr(1, Cells(B, 2).Value, A, 1)
B = B + 1
If B >= 100 Then
MsgBox "±z¿é¤Jªº©m¦W¬O¡G " & A, vbOKOnly + vbCritical, Title:="¬dµL¦¹¦r¦ê"
A = InputBox("½Ð«·s¿é¤J¦r¦ê")
B = 2
End If
Loop
X = 4
For B = 2 To 100
If InStr(1, Cells(B, 2).Value, A, 1) Then
Cells(X, 9) = Cells(B, 1)
Cells(X, 10) = Cells(B, 2)
Cells(X, 11) = Cells(B, 3)
Cells(X, 12) = Cells(B, 4)
XX = Len(Cells(1, 5).Value)
yy = Application.Search(Cells(1, 5).Value, Cells(X, 10).Value)
Cells(X, 10).Select
With ActiveCell.Characters(Start:=yy, Length:=XX).Font
.Bold = True
.ColorIndex = 3
End With
X = X + 1
End If
Next
End Sub |
|