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

¦b¦h­Ó¤u§@ªí§@¥­§¡­È­pºâ¡A¥X²{RANGE¤èªk(_worksheetª«¥ó)¥¢±Ñ¤§¿ù»~

¦b¦h­Ó¤u§@ªí§@¥­§¡­È­pºâ¡A¥X²{RANGE¤èªk(_worksheetª«¥ó)¥¢±Ñ¤§¿ù»~

¤U¦Cµ{¦¡½X¦b­pºâ¤u§@ªí2®É¹B¦æ¥¿±`¡A
¦ý¬O¤@¸õ¨ì¤u§@ªí3­pºâ¥­§¡­È®É«o·|¿ù»~¡A
§ä¤F«Ü¤[¬Ý¤£¥X°ÝÃD©Ò¦b¡A
Àµ½Ð°ª¤â¥i¥H¸Ñ´b¡AÁÂÁÂ

    Dim col As Integer, p_today As Single, row As Integer
    For i = 2 To 9                           '¦b¤u§@ªí2¦Ü¤u§@ªí9§@­pºâ
        col = 3   
        Do While Sheets(i).Cells(1, col) <> ""
            If IsNumeric(Sheets(i).Cells(65536, col + 1).End(xlUp).Value) Then     '¦pªG¬O¼Æ¦r
                p_today = Sheets(i).Cells(65536, col + 1).End(xlUp).Value                '¦æ¸¹(col+1)  ¦s¦³¨C¤Ñªº¸ê®Æ
            Else
                p_today = 0
            End If
            Sheets(i).Activate
            Sheets(i).Cells(65536, col + 1).End(xlUp).Select
            row = Selection.row()
            avg = Application.Average(Range(Sheets(i).Cells(row - 259, col + 1), Sheets(i).Cells(row, col + 1)))
            Sheets(i).Cells(65536, col).Value = avg            '¦æ¸¹col  ©ñ¸m260¤Ñ¥­§¡­È
            col = col + 2
        Loop
    Next

·P®¦ª©¥D
¤w¸g¥i¥H¶¶§Q¹B¦æ¤F!!:D

TOP

        ÀR«ä¦Û¦b : ¤â¤ß¦V¤U¬O§U¤H¡A¤â¤ß¦V¤W¬O¨D¤H¡F§U¤H§Ö¼Ö¡A¨D¤Hµh­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD