- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# dechiuan999 - Private Sub ComboBox1_Change()
- Dim mSht As Worksheet, mAr, s$, j%, m%, mStr$, mStr1$
- Dim mRng As Range, mRng1 As Range
- Set mSht = Worksheets("L_Data01")
- With mSht
- With ComboBox1
- .Width = .Width * 0.5
- .ColumnCount = 1
- mAr = .List
- .Value = .List(.ListIndex)
- mStr = .Value
- End With
- Set mRng1 = .Columns("c").Find(what:=mStr, lookat:=xlWhole, searchorder:=xlByRows)
- If Not mRng1 Is Nothing Then
- m = mRng1.Row
- Else
- MsgBox "½Ð¥ý¿ï¨ú«ü©w©m¦W"
- Exit Sub
- End If
- .Range("IO1").CurrentRegion = ""
- .Range("a" & m).Resize(6, 8).Copy .Range("IO2")
- Set mRng = .Range("IO2").CurrentRegion
- .[A1:H1].Copy .[IO1]
- With ListBox1
- .Width = .Width * 1
- .ColumnCount = 8
- .ColumnHeads = True
- .RowSource = mRng.Address(, , , 1, 1)
- .ColumnHeads = True
- End With
- End With
- End Sub
½Æ»s¥N½X |
|