Dim mSht As Worksheet
Dim mRng As Range, E As Range
Set mSht = Worksheets(1)
With mSht
Set mRng = .Range("a1:c5")
mRng.Name = "NewName"
[newname].Select
For Each E In [newname]
MsgBox E.Address
Next
Option Explicit
Dim d As Object
Sub UFI()
Dim A As Range
Set d = CreateObject("Scripting.Dictionary")
With ActiveSheet
For Each A In .Range("d2", .[d2].End(xlDown))
d(A.Value) = IIf(d(A.Value) = "", A.Offset(, 1).Value, d(A.Value) & "," & A.Offset(, 1))
Next
ComboBox1.List = d.KEYS
End With
End Sub
Sub CBC()
If ComboBox1.ListIndex > -1 Then
ComboBox2.List = Split(d(ComboBox1.Value), ",")
ComboBox2.Value = ComboBox2.List(0)
End If
End Sub
§Úקï¤F¤@¤U6¼Ó¤j¤jªºµ{¦¡¦p¤U
Dim d As Object, A
Set d = CreateObject("Scripting.Dictionary")
With ActiveSheet
For Each A In .Range("a2", .[a2].End(xlDown))
d(Year(A.Value)) = ""
Next A
ComboBox1.List = Application.Transpose(d.KEYS)
End With
§Y¥i§¹¦¨~¤£ª¾³o¼Ë¬O§_¥i¦æ!?§@ªÌ: GBKEE ®É¶¡: 2012-7-5 14:30