½Ð°Ý¦p¦ó¦b¸ê®ÆÀɦU¤u§@ªí°µ¾ã²z¦b¬d¸ßÀÉÅã¥Ü¥X¨Ó?
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 62
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-3-13
               
|
- Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- If Target.Column = 2 Then
- If Target.Row > 4 And Target.Row < 15 Then
- If ActiveCell <> "" Then
- [E3] = ActiveCell.Value
- Ex [C1], [E1], Target
- Else
- End If
- End If
- End If
- End Sub
- Sub Ex(s As Date, t As Date, mystr)
- Dim Ay()
- Application.ScreenUpdating = False
- Set d = CreateObject("Scripting.Dictionary")
- With Workbooks.Open(ThisWorkbook.Path & "\B08.xls") '¨âÀɬ°¦P¤@¥Ø¿ý
- For Each sht In .Sheets
- d(sht.Name) = 1
- Next
- For i = s To t
- sh = Format(i, "yyyymmdd")
- If d.exists(sh) = True Then
- With .Sheets(sh)
- For Each a In .Range(.[B2], .[B2].End(xlDown))
- If InStr(a, mystr) > 0 Then
- ar = Array(a.Offset(, -1).Value, a.Value, a.Offset(, 2).Value, a.Offset(, 3).Value, a.Offset(, 2).Value - a.Offset(, 3).Value)
- ReDim Preserve Ay(x)
- Ay(x) = ar
- x = x + 1
- End If
- Next
- End With
- End If
- Next
- .Close
- End With
- With Sheet1
- .[E5:I65536] = ""
- If x > 0 Then .[E5].Resize(x, 5) = Application.Transpose(Application.Transpose(Ay))
- End With
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X ¦^´_ 5# flask |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|