- ©«¤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# ffntldj
¸Õ¸Õ¬Ý- Sub Ex()
- Dim D As Object, Rng As Range, R As Range, Ar()
- Set D = CreateObject("SCRIPTING.DICTIONARY") '³]¥ßDICTIONARYª«¥ó
- Set Rng = [A1:C9] '«ü©w½d³ò
- For Each R In Rng.Rows 'Rows «ü©w½d³òªº¨C¤@¦C
- Ar = Application.Transpose(Application.Transpose(R.Cells.Value)) '±NRÂà¸m¤G¦¸Âà´«¬°¤@ºû°}¦C
- D(Join(Ar, ",")) = Ar 'DICTIONARYª«¥ó KEY ->Join(AR, ",") ,DICTIONARYª«¥ó ITEM->Ar
- Next
- [E1].Resize(D.Count, Rng.Columns.Count) = Application.Transpose(Application.Transpose(D.items))
- 'D.Count-> DªºÁ`¼Æ, Rng.Columns.Count->RngÄæ¦ìªºÁ`¼Æ.
- '¨C¤@ D.ITEM ¬O¬°¤@ºû°}¦C D.ITEMs ->D.ITEMªº¶°¦X.
- 'Application.Transpose(Application.Transpose(D.ITEMS)) ->±ND.ITEMS Âà¸m¤G¦¸«á¬°¤G¬°°}¦C
- End Sub
½Æ»s¥N½X |
|