- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 250
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-18
|
¦^´_ 1# hong912 - Sub ¦a§}§ó·s()
- '¨âÀɮ׸m©ó¦P¤@¥Ø¿ý
- Dim A As Range, Wk As Workbook, Sh As Worksheet, d As Object, yn As Integer
- Set d = CreateObject("Scripting.Dictionary")
- Set Wk = Workbooks.Open(ThisWorkbook.Path & "\" & "¦a§}°O¿ýªí.xlsm")
- For Each Sh In Wk.Sheets
- With Sh
- For Each A In .Range(.[A2], .[A2].End(xlDown))
- d(A.Value) = Array(A.Offset(, 1), Sh.Name, A.Offset(, 1).Address)
- Next
- End With
- Next
- With ThisWorkbook.Sheets(1)
- If d.exists(.[B25].Value) And d(.[B25].Value)(0) <> .[B26] Then
- yn = MsgBox("¦a§}¤£¦P¡A¬O§_§ó·s?", vbYesNo)
- If yn = 6 Then
- Wk.Sheets(d(.[B25].Value)(1)).Range(d(.[B25].Value)(2)) = .[B26]
- Wk.Close 1
- Else
- Wk.Close 0
- End If
- End If
- End With
- End Sub
½Æ»s¥N½X |
|