- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
     
|
¦^´_ 1# Scott090 - Option Base 1
- Option Explicit
- Sub Test1()
- '©w¸qÅܼÆ
- Dim Qref%, kWref%, COPref%, Qev_ref%, Qcd_ref%, Tchws%, Tchwr%, Tcws%, Tcwr%
- Dim a0%, a1%, a2%, a3%, a4%, a5%
- Dim ar, x
- Dim D As Object
- Set D = CreateObject("Scripting.Dictionary")
- 'ÅܼƦWºÙ°}¦C, »¡©ú: ¦WºÙ¦b°}¦C¤¤ªº¦ì¸m¬O·|Åܪº
- ar = Array("Qref", "kWref", "COPref", "Qev_ref", "Qcd_ref", "Tchws", "Tchwr", "Tcws", "Tcwr") ', "a0", "a1", "a2", "a3", "a4", "a5")
- '§âÅܼƦWºÙ¦b°}¦C¤¤ªº¦ì¸m³]µ¹ÅܼÆ
- '(¦p¦ó¼gVBA¥i¥H±o¨ì´Á±æµ²ªG)'?
- 'Qref = 1
- 'kWref = 2
- 'COPref = 3
- 'Qev_ref = 4
- 'Qcd_ref = 5
- ' .
- ' .
- ' .
- 'a5 = 15
- For Each x In ar
- D(x) = Application.Match(x, ar, 0)
- Next
- [E1:F1].Resize(D.Count) = Application.Transpose(Array(D.keys, D.items))
-
- For Each x In D.keys
- Debug.Print x, D(x)
- Next
- End Sub
½Æ»s¥N½X |
|