Board logo

¼ÐÃD: [µo°Ý] ¦³±ø¥óªº²Î­p [¥´¦L¥»­¶]

§@ªÌ: gctsai    ®É¶¡: 2011-7-20 22:50     ¼ÐÃD: ¦³±ø¥óªº²Î­p

½Ð°Ý¦U¦ì¤j¤j:
§Ú¦³¤@­Ó¤u§@ªí¦p¤U(SHEET1)
[attach]7071[/attach]
§Ú»Ý­n²Î­pA¤½¥qªº«~¦W¤Î¼Æ¶q¦p¤U(SHEET2)
[attach]7073[/attach]
­n¦p¦ó°µ©O?
§@ªÌ: chin15    ®É¶¡: 2011-7-20 23:22

«Øij¥Î¼Ï¶s§a
[attach]7077[/attach]
§@ªÌ: AnitaHuang99    ®É¶¡: 2011-7-21 10:15

¦pªG¥u¬O­n±o¨ì¦U§O¤p­p¼Æ, «Øij¥i¥H¸Õ¸Õ¥Îsumproduct§â¤½¥q, ¤ë¥÷, «~¦Wªº±ø¥ó©ñ¶i¥h
§@ªÌ: gctsai    ®É¶¡: 2011-7-21 20:30

ÁÂÁÂchin15¤j¤j
§Ú²{¦b¬O¥Î¼Ï¯Ã,¦ý¬O¦sÀÉ«áÀÉ®×Åܪº«Ü¤j
©Ò¥H§Ú·Q¦pªG¥Îvba·|¤£·|ÀÉ®×Åܪº¤ñ¸û¤p
ÁÙ¦³¦pªG¦³¨â­Ó¥H¤Wªº±ø¥ó©O
¦p "A" ¤½¥q¦b "1" ¤ë¥÷ªº«~¦W¼Æ¶q©O?
PS.¦]¬°¦P¼ËªºÀɮצ³«Ü¦h©Ò¥H¦pªG¥ÎVBA«á¦A°µ­Ó«ö¶s´N¥i¥H¨Ï¥Î«Ü¦h­ÓÀɮפF(¤£¥Î¨C­ÓÀɮ׳£°µ¼Ï¯Ã).
§@ªÌ: GBKEE    ®É¶¡: 2011-7-22 07:34

¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-7-22 07:37 ½s¿è

¦^´_ 4# gctsai
¥ý¾Ç°ò¥»¥\  3¼Ó´£Ä³ªº¤u§@ªí¨ç¼ÆSUMPRODUCT
¹Ï¤@  SHEET1 (¸ê®Æ°Ï)
[attach]7108[/attach]
¹Ï¤G SHEET2
[attach]7109[/attach]
¼Æ¶qªº¤½¦¡
B5=SUMPRODUCT((Sheet1!$A$2:$A$65525=$A$2)*(Sheet1!$B$2:$B$65525=$B$2)*(Sheet1!$C$2:$C$65525=$C$2)*(Sheet1!$D$2:$D$65535=A5))
B6=SUMPRODUCT((Sheet1!$A$2:$A$65525=$A$2)*(Sheet1!$B$2:$B$65525=$B$2)*(Sheet1!$C$2:$C$65525=$C$2)*(Sheet1!$D$2:$D$65535=A6))
B7=SUMPRODUCT((Sheet1!$A$2:$A$65525=$A$2)*(Sheet1!$B$2:$B$65525=$B$2)*(Sheet1!$C$2:$C$65525=$C$2)*(Sheet1!$D$2:$D$65535=A7))
B8=SUMPRODUCT((Sheet1!$A$2:$A$65525=$A$2)*(Sheet1!$B$2:$B$65525=$B$2)*(Sheet1!$C$2:$C$65525=$C$2)*(Sheet1!$D$2:$D$65535=A8))
§@ªÌ: gctsai    ®É¶¡: 2011-7-24 20:00

ÁÂÁÂGBKEE¤j¤j
1.¦]¬°¥uª¾¹D¤½¥q¤Î¤ë¥÷¦Ó«~¦Wªº¦WºÙ¤ÎºØÃþµLªkª¾¹D(¦p¥i¯à·|¦³¼W¥[»ñ±ù,Às²´¤§Ãþªº)
2.¦]¬°§Ú¥Ø«e¦³50­ÓÃþ¦üªºÀÉ®×,¤£·Q¤@­Ó­ÓÀÉ®×¥h°µ,©Ò¥H¤~·Q»¡¥Îvbaªº
§@ªÌ: GBKEE    ®É¶¡: 2011-7-24 20:43

¦^´_ 6# gctsai
VBAµ{§Ç¬O­n¶q¨­®M»sªº,©Ò¥HªþÄÒ¤W¨Ó³W©w±ø¥ó­n©ñ¨º¸Ì»¡©ú¥Õ, ¦^µª¤~·|©ú½T.
§@ªÌ: gctsai    ®É¶¡: 2011-7-26 16:02

1.¤j¤j§Úªº°ÝÃD¬O­n¦p¦ó¥Îvba°µ(¦pªþÀÉ)
2.­n¦p¦ó±q¨Ó·½ªº¤u§@­¶¤¤²Î­p¥X"¤T¬v"¤½¥qªº§Ç¸¹¥X²{ªº¦¸¼Æ
3.¨ä¤¤±ø¥ó"¤T¬v"¬O¤£¥ÎÅã¥Üªº
4.¦]¬°¦³«Ü¦hÀɮצpªG¥Î¼Ï¯Ã¤ÀªRªº¸Ü­n¨C¤@­ÓÀɮ׳£°µ,­«ÂI¬OÀÉ®×·|Åܫܤj
[attach]7138[/attach]
§@ªÌ: GBKEE    ®É¶¡: 2011-7-27 08:28

¦^´_ 8# gctsai
¸Õ¸Õ¬Ý
  1. Sub Ex()
  2.     Dim D As Object, Rng As Range
  3.     Set D = CreateObject("SCRIPTING.DICTIONARY") '³]¥ß¦r¨åª«¥ó
  4.     Set Rng = Sheets("¨Ó·½").[A2]                                       '³]¥ßÀx¦s®æª«¥ó
  5.     With Sheets("²Î­p")
  6.         Do While Rng <> ""        'Rngªº­È¬°ªÅ¥Õ®É¤£°õ¦æ Doªº°j°é
  7.             If Rng = .[A2] Then D(Rng.Offset(, 1).Value) = D(Rng.Offset(, 1).Value) + 1
  8.             '        .[A2] ->Sheets("²Î­p")[A2]      '¦r¨åª«¥ó(KEY)=ITEM + 1
  9.             Set Rng = Rng.Offset(1)  'Rng¤U²¾¤@¦C¦ì
  10.         Loop
  11.         With .[B2:C2]
  12.             .Cells(1).Resize(D.Count) = Application.Transpose(D.KEYS)
  13.             .Cells(2).Resize(D.Count) = Application.Transpose(D.ITEMS)
  14.             .Resize(D.Count, 2).Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
  15.         End With
  16.     End With
  17.     Set D = Nothing
  18.     Set Rng = Nothing
  19. End Sub
½Æ»s¥N½X

§@ªÌ: gctsai    ®É¶¡: 2011-7-27 20:37

ÁÂÁÂGBKEE¤j¤j
¤w¸g¥i¥H¥Î¤F,¦Ó¥BÁÙ¥i¥Hª½±µ§â±ø¥ó(¦p"¤T¬v")¥´¦bvba¤º
§@ªÌ: gctsai    ®É¶¡: 2011-7-28 22:55

¤j¤j¥t¥~¦pªG§Ú·Q­n¦b¸ê®Æ¦³Åܧó©Î¼W¥[®É¦Û°Ê§ó·sµ²ªG©O?
§@ªÌ: GBKEE    ®É¶¡: 2011-7-29 06:32

¦^´_ 11# gctsai
¨Ï¥Î¤u§@ªíªº¹w³]¨Æ¥óWorksheet_Change,³o¬O§Aªþ¥óSheets("¨Ó·½")ªºµ{¦¡½X.
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.     Ex
  3. End Sub
  4. Private Sub Ex()
  5.     Dim D As Object, Rng As Range
  6.     Set D = CreateObject("SCRIPTING.DICTIONARY") '³]¥ß¦r¨åª«¥ó
  7.     Set Rng = Sheets("¨Ó·½").[A2]                                       '³]¥ßÀx¦s®æª«¥ó
  8.     With Sheets("²Î­p")
  9.         Do While Rng <> ""        'Rngªº­È¬°ªÅ¥Õ®É¤£°õ¦æ Doªº°j°é
  10.             If Rng = .[A2] Then D(Rng.Offset(, 1).Value) = D(Rng.Offset(, 1).Value) + 1
  11.             '        .[A2] ->Sheets("²Î­p")[A2]      '¦r¨åª«¥ó(KEY)=ITEM + 1
  12.             Set Rng = Rng.Offset(1)  'Rng¤U²¾¤@¦C¦ì
  13.         Loop
  14.         With .[B2:C2]
  15.             .Cells(1).Resize(D.Count) = Application.Transpose(D.KEYS)
  16.             .Cells(2).Resize(D.Count) = Application.Transpose(D.ITEMS)
  17.             .Resize(D.Count, 2).Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
  18.         End With
  19.     End With
  20.     Set D = Nothing
  21.     Set Rng = Nothing
  22. End Sub
½Æ»s¥N½X

§@ªÌ: gctsai    ®É¶¡: 2011-7-29 22:44

¤j¤j§Ú¦b"¨Ó·½"¼W¥[¤F¤@¦C¸ê®Æ¦p¤U
  A                B                   C
¤T¬v        D25-MOTO        NOKIA
¥i¬O"²Î­p"¤]¨S¦³¦Û°Ê¦A­pºâ¤@¦¸,¦Ó¬O­n¦b°õ¦æ¤@¦¸¥¨¶°«á¤~·|±q·s­pºâ
§@ªÌ: chin15    ®É¶¡: 2011-7-29 23:22

§ï¥ÎWorksheet_Calculate¨Æ¥ó¸Õ¸Õ
§@ªÌ: Hsieh    ®É¶¡: 2011-7-29 23:49

¦^´_ 13# gctsai

§Ú·Q§A¬Oµ{¦¡½X©ñ¿ù¼Ò²Õ§a!
ª`·NGBKEE´£¥Ü¸Óµ{¦¡½X¥²¶·¸m©ñ¦b¨Ó·½¤u§@ªí¼Ò²Õ¤º
§@ªÌ: gctsai    ®É¶¡: 2011-7-30 08:14

ÁÂÁ¤j¤jªº«ü¾É,¤w¸g¥i¥H¥Î¤F,­ì¨Ó¬O¼Ò²Õªº°ÝÃD
¨º¦pªG­n²Î­pªºÄæ¦ì¤£¦b®ÇÃä©O
If Rng = "¤T¬v" Then D(Rng.Offset(, 3).Value) = D(Rng.Offset(, 3).Value) + 1
°£¤F¤W­z¤§¥~¬O§_¥i¥H¦³¥t¥~ªº¤è¦¡¦]¬°¦³®É­Ô­n²Î­pªºÄæ¦ì·|Â÷ªº«Ü»·¬Æ¦Ü·|¦b±ø¥óªº«e­±
[attach]7182[/attach]
§@ªÌ: GBKEE    ®É¶¡: 2011-7-30 10:11

¦^´_ 16# gctsai
¨º¦pªG­n²Î­pªºÄæ¦ì¤£¦b®ÇÃä©O
¨º§A­n¸ò¹q¸£»¡ªü ¦p¹Ï

    [attach]7184[/attach]
  1. Private Sub Ex()
  2.     Dim D As Object, Rng As Range, f As Variant
  3.     Set D = CreateObject("SCRIPTING.DICTIONARY") '³]¥ß¦r¨åª«¥ó
  4.     Set Rng = Sheets("¨Ó·½").[a2]    '³]¥ßÀx¦s®æª«¥ó
  5.     With Sheets("²Î­p")
  6.          f = Application.Match(.[b1].Text, Sheets("¨Ó·½").Rows(1), 0) 'f: ¦b¨Ó·½¤¤´M§ä²Î­pªºÄæ¦ì
  7.          If IsError(f) Then MsgBox "²Î­pªºÄæ¦ì¤£¦s¦b!!!": Exit Sub
  8.         Do While Rng <> ""        'Rngªº­È¬°ªÅ¥Õ®É¤£°õ¦æ Doªº°j°é
  9.             If Rng = .Range("A2") Then D(Rng.Offset(, f - 1).Value) = D(Rng.Offset(, f - 1).Value) + 1
  10.             '        .[A2] ->Sheets("²Î­p")[A2]      '¦r¨åª«¥ó(KEY)=ITEM + 1
  11.             Set Rng = Rng.Offset(1)  'Rng¤U²¾¤@¦C¦ì
  12.         Loop
  13.         With .[B2:C2]
  14.             .Resize(.CurrentRegion.Rows.Count, 2) = ""
  15.             .Cells(1).Resize(D.Count) = Application.Transpose(D.KEYS)
  16.             .Cells(2).Resize(D.Count) = Application.Transpose(D.ITEMS)
  17.             .Resize(D.Count, 2).Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
  18.         End With
  19.     End With
  20.     Set D = Nothing
  21.     Set Rng = Nothing
  22. End Sub
½Æ»s¥N½X

§@ªÌ: gctsai    ®É¶¡: 2011-7-30 22:27

ÁÂÁ¤j¤j,§Ú¤w¸g¦³¸ò¹q¸£»¡¤F,¥¦»¡ok!
¦ý¬O°ÝÃDÄ_Ä_¤S¦³¤@­Ó°ÝÃD,´N¬O:
¦pªG¦³§OªºÀɮפ]¬O­n¥Î³o­Óvba,¥i¬O§Ú¦b¥¨¶°¤º§ä¤£¨ì
[attach]7197[/attach]
§@ªÌ: oobird    ®É¶¡: 2011-7-30 23:30

±`¥Î¨ìªº¸Ü¥i§â¥¨¶°¦s©ñ¦b­Ó¤H¥¨¶°¬¡­¶Ã¯
¤]¥i°µ¦¨¼W¯q¶°¸ü¤J
§@ªÌ: gctsai    ®É¶¡: 2011-7-31 08:40

±`¥Î¨ìªº¸Ü¥i§â¥¨¶°¦s©ñ¦b­Ó¤H¥¨¶°¬¡­¶Ã¯
¤]¥i°µ¦¨¼W¯q¶°¸ü¤J
oobird µoªí©ó 2011-7-30 23:30



½Ð°Ý¤j¤j¥¨¶°¬¡­¶Ã¯©Î¼W¯q¶°­n¦p¦ó°µ©O?
§@ªÌ: oobird    ®É¶¡: 2011-7-31 09:02

§A§âPrivate Sub Ex()
«e­±ªºPrivate ®³±¼
´N¥i¦b¤u§@¦C~¥¨¶°¤º¬Ý¨ì¥¦
«Ø¥ß¥¨¶°®É¹ï¸Ü¤è¶ô¦s©ñ¦ì¸m´N¿ï"­Ó¤H¥¨¶°¬¡­¶Ã¯"
³o¼Ë¶}¨C­ÓÀɮ׳£·|ÀH¤§¶}±Ò
¦s¼W¯q¶°¬O¥t¦s¡A¿ï"xla",¦s¦n«á¦b¼W¯q¶°¤¤¸ü¤J
§@ªÌ: gctsai    ®É¶¡: 2011-7-31 11:07

¥»©«³Ì«á¥Ñ gctsai ©ó 2011-7-31 11:15 ½s¿è
§A§âPrivate Sub Ex()
«e­±ªºPrivate ®³±¼
´N¥i¦b¤u§@¦C~¥¨¶°¤º¬Ý¨ì¥¦
«Ø¥ß¥¨¶°®É¹ï¸Ü¤è¶ô¦s©ñ¦ì¸m´N¿ï" ...
oobird µoªí©ó 2011-7-31 09:02

ÁÂÁ¤j¤j,¥i¬O¦pªG§â"«e­±ªºPrivate ®³±¼"ªº¸Ü¨ºÁÙ¥i¥H¦Û°Ê§ó·s¶Ü?
[attach]7224[/attach]
¼W¯q¶°¤£ª¾¹D­n¿ï¨º¤@­Ó??
§@ªÌ: oobird    ®É¶¡: 2011-7-31 11:18

Privateªí¥Ü Sub µ{§Ç¥u¦b«Å§i¥¦¤§¼Ò²Õùتºµ{§Ç©Ò¨Ï¥Î¡C
»P¦Û°Ê§ó·s²@µLÃö«Y¡C
§@ªÌ: gctsai    ®É¶¡: 2011-8-1 22:47

¤j¤j½Ð°Ý¤@¤U¬°¤°»ò§â"±ø¥ó"±q[A2]²¾¨ì[C2],µ²ªG§Ç¸¹[E2]´NÅܦ¨¤F°Ó«~«~¦W[G2]
[attach]7240[/attach]
§@ªÌ: GBKEE    ®É¶¡: 2011-8-2 17:39

¦^´_ 24# gctsai
µ{§Ç¸Ì½Ð¥[¤W¬õ¦r³¡¤À
f = Application.Match(.[b1].Text, Sheets("¨Ó·½").Rows(1), 0) 'f: ¦b¨Ó·½¤¤´M§ä²Î­pªºÄæ¦ì
f = f - 2    '§AAÄæ±q²¾¨ìCÄæ ***** Rng.Offset·|§ïÅÜ
If Rng = .Range("A2") Then D(Rng.Offset(, f- 1).Value) = D(Rng.Offset(, f - 1).Value) + 1
§@ªÌ: gctsai    ®É¶¡: 2011-8-2 20:37

¦^´_ 25# GBKEE

   ±q AÄæ²¾¨ìCÄæ­n¥[ f=f-2
   ¨º±qAÄæ²¾¨ìEÄæ¬O¤£¬O­n¥[ F=F-4
   ¤]´N¬O¦pªG²¾¦h¤ÖÄæ´N­n´î¦^¨Ó¶Ü??
§@ªÌ: sonynetmd    ®É¶¡: 2011-8-3 10:01

½Ð°Ý¦U¦ì¤j¤j, ¦pªG­pºâ"¼Æ¶q"¥i§_¤£¬O§Q¥Îµ¥©ó¸¹(=) µ´¹ï­È {0,1,2...}, ¦Ó§ï¬° ¤j©ó/¤p©ó ¥i¥H¶Ü?
¤p¾Ç¥Í sony
§@ªÌ: GBKEE    ®É¶¡: 2011-8-3 15:05

¦^´_ 26# gctsai
­×§ï¦p¤U´N¥²¥h­pºâÄæ¦ì¤F
  1. Sub Ex()
  2.     Dim D As Object, Rng As Range, f As Variant
  3.     Set D = CreateObject("SCRIPTING.DICTIONARY") '³]¥ß¦r¨åª«¥ó
  4.     With Sheets("¨Ó·½")
  5.         Set Rng = .[c2]    '³]¥ßÀx¦s®æª«¥ó
  6.         f = Application.Match(Sheets("²Î­p").[b1].Text, .Rows(1), 0) 'f: ¦b¨Ó·½¤¤´M§ä²Î­pªºÄæ¦ì
  7.         If IsError(f) Then MsgBox "²Î­pªºÄæ¦ì¤£¦s¦b!!!": Exit Sub
  8.         Do While Rng <> ""        'Rngªº­È¬°ªÅ¥Õ®É¤£°õ¦æ Doªº°j°é
  9.            If Rng = Sheets("²Î­p").Range("A2") Then D(.Cells(Rng.Row, f).Value) = D(.Cells(Rng.Row, f).Value) + 1
  10.             '        .[A2] ->Sheets("²Î­p")[A2]      '¦r¨åª«¥ó(KEY)=ITEM + 1
  11.             Set Rng = Rng.Offset(1)  'Rng¤U²¾¤@¦C¦ì
  12.         Loop
  13.     End With
  14.     With Sheets("²Î­p").[B2:C2]
  15.         .Resize(.CurrentRegion.Rows.Count, 2) = ""
  16.         .Cells(1).Resize(D.Count) = Application.Transpose(D.KEYS)
  17.         .Cells(2).Resize(D.Count) = Application.Transpose(D.ITEMS)
  18.         .Resize(D.Count, 2).Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlNo
  19.     End With
  20.     Set D = Nothing
  21.     Set Rng = Nothing
  22. End Sub
½Æ»s¥N½X

§@ªÌ: am0251    ®É¶¡: 2011-8-3 16:35

¤£¦n·N«ä,GBKEE¤j¤j,¥i¥H¸ÑÄÀ¤@¤U"SCRIPTING.DICTIONARY"ªº¥Îªk©O?³o­Ó§ÚÁÙ¨S¾Ç¹L,ÁÂÁÂ!
§@ªÌ: oobird    ®É¶¡: 2011-8-3 16:52

¦^´_ 29# am0251


    http://forum.twbts.com/thread-20-1-1.html
§@ªÌ: gctsai    ®É¶¡: 2011-8-4 21:36

ÁÂÁ¦U¦ì¤j¤jªº«ü¾É,²×©ó§¹µ½¤F

§@ªÌ: wsx24680    ®É¶¡: 2011-8-12 10:45

D(Rng.Offset(, 1).Value) = D(Rng.Offset(, 1).Value) + 1

¨S·Q¨ìÁÙ¯à³o¼Ë¥Î
¤S¾Ç¨ì¤F¡A·PÁÂ
§@ªÌ: h60327    ®É¶¡: 2011-8-19 19:52

gbkeeª©¥D¸ÑÄÀªº¦n²M·¡
¤S¾Ç·|¤F·sÆ[©À
§@ªÌ: Andy2483    ®É¶¡: 2023-3-31 16:18

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-31 16:23 ½s¿è

¦^´_ 24# gctsai


    ÁÂÁ½׾Â,ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨ÒÀÉ
«á¾ÇÂǦ¹©«¬ã¨s¸ê®Æªí±Æ§Ç«á¤~±a¤J°}¦C,¸ê®Æªí´_­ì,±µµÛ¤~¶i¦æ²Î­p,
¾Ç²ß¨ì«Ü¦hª¾ÃÑ,¾Ç²ß¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð

¨Ó·½ªí:
[attach]36077[/attach]

²Î­pªí:µ²ªG
[attach]36078[/attach]

Option Explicit
Sub «Å§i()
Dim Brr, Crr, Y, N&, C&, R&, i&, j&, T$, T2$, T3$, TT$
Dim Sh1 As Worksheet, Sh2 As Worksheet
Set Y = CreateObject("Scripting.Dictionary")
Set Sh1 = Sheets("¨Ó·½"): Set Sh2 = Sheets("²Î­p")
C = Sh1.UsedRange.Columns.Count: R = Sh1.UsedRange.Rows.Count
With Range(Sh1.[A1], Sh1.Cells(R, C + 1))
   With .Columns(C + 1): .Value = "=ROW(A1)": .Value = .Value: End With
   .Sort KEY1:=.Item(3), Order1:=1, Key2:=.Item(2), Order2:=1, Header:=1
   Brr = .Value
   .Sort KEY1:=.Item(C + 1), Order1:=1, Header:=1: .Columns(C + 1).Delete
End With
For i = 2 To UBound(Brr)
   T = Brr(i, 3): If Y(T) = "" Then Y(T) = Y.Count: Y(T & "|Àx¦ì¼Æ") = ""
Next
Sh2.UsedRange.Delete
With Sh2.[A1].Resize(1, Y.Count)
   .Value = Y.keys: .Replace "*|", "", Lookat:=xlPart
End With
ReDim Crr(1 To R, 1 To Y.Count)
For i = 2 To UBound(Brr)
   T2 = Brr(i, 2): T3 = Brr(i, 3): TT = T3 & "|" & T2
   If Y(TT) = "" Then
      Y(T3 & "/r") = Y(T3 & "/r") + 1
      Crr(Y(T3 & "/r"), Y(T3)) = T2
      Crr(Y(T3 & "/r"), Y(T3) + 1) = 1
      Y(TT) = 1
      Else
         N = Y(T3 & "/r")
         Crr(N, Y(T3) + 1) = Crr(N, Y(T3) + 1) + 1
   End If
Next
With Sh2.[A2].Resize(UBound(Crr), UBound(Crr, 2))
   .Value = Crr: .EntireColumn.AutoFit
End With
Set Y = Nothing: Erase Brr, Crr: Set Sh1 = Nothing: Set Sh2 = Nothing
End Sub




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)