ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] vba°}¦C­pºâ¼Æ­È

[µo°Ý] vba°}¦C­pºâ¼Æ­È

½Ð°Ý¤@¤U¦pªG­n°w¹ï¨C­Ósheetªºe8:e31°µ³Ì¤p­È/¥­§¡­È/³Ì¤j­È­pºâ¡A¦A±N­pºâ©Ò±oªº¼Æ­ÈÅã¥Ü¦be32/e33/e34¡Aµ{¦¡­n«ç»ò¼g(²Ä3¦æ¤@ª½¥X²{¿ù»~)


    For i = 2 To Worksheets.Count
           For a = 5 To 9
                   arr = Worksheets(i).Range(Cells(8, a), Cells(31, a)).Value
                   Worksheets(i).[E32] = Application.WorksheetFunction.Min(arr)
                   Worksheets(i).[E33] = Application.WorksheetFunction.Average(arr)
                   Worksheets(i).[E34] = Application.WorksheetFunction.Max(arr)
           Next
    Next

¦^´_ 1# smallpoper
  1. For i = 2 To Worksheets.Count
  2.         For A = 5 To 9
  3.             With Worksheets(i)
  4.                 Arr = .Range(.Cells(8, A), .Cells(31, A)).Value
  5.                 '°}¦C¾É¤JÀx¦s®æªº­È,¤@«ß¬O¤Gºû°}¦C
  6.                 Arr = Application.Transpose(Arr) '¥Î¤u§@ªí¨ç¼ÆÂà¸m¬°¤@¬°°}¦C
  7.                 .Cells(32, A) = Application.WorksheetFunction.Min(Arr)
  8.                 .Cells(33, A) = Application.WorksheetFunction.Average(Arr)
  9.                 .Cells(34, A) = Application.WorksheetFunction.Max(Arr)
  10.             End With
  11.         Next
  12.     Next
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 1# smallpoper

¸Õ¸Õ¬Ý
  1. Sub test()
  2. Dim arr As Range
  3. For i = 2 To Worksheets.Count
  4. Set arr = Sheets(i).Range("e8:e31")
  5.                Sheets(i).[E32] = Application.WorksheetFunction.Min(arr)
  6.                Sheets(i).[E33] = Application.WorksheetFunction.Average(arr)
  7.                Sheets(i).[E34] = Application.WorksheetFunction.Max(arr)
  8. Next
  9. End Sub
½Æ»s¥N½X

TOP

ÁÂÁ¦U¦ìªº¦^ÂÐ

TOP

        ÀR«ä¦Û¦b : ¤H­n¦Û·R¡A¤~¯à·R´¶¤Ñ¤Uªº¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD