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

VBA µeTrend Chart°ÝÃD

VBA µeTrend Chart°ÝÃD

Â^¨úµ{¦¡½X¦p¤U¡A§Ú­n±q²Ä6­Ósheet¨ì©³ªº¨C­Ósheets³£­n¨Ì¦P¼Ë¤èªkø»strend chart
³Ì«á¶]¥XÀ³¥Îµ{¦¡©Îª«¥ó©w¸q¤W¿ù»~
¥i¥H³Â·ÐÀ°¦£¶Ü?
·s¤â¡A¤£¤j·|¼g¡A½Ð¦h¥]²[

Sub hihi()

    Sheets("rawdata").Select
    Cells(300, 1).End(xlUp).Select
    endDD = Selection.Row
    Cells(5, 1000).End(xlToLeft).Select
    endRR = Selection.Column

        For F = 6 To Sheets.Count
            
            Sheets(F).Select
            'Range(Cells(1, k), Cells(2, k)).Select
            ActiveSheet.Shapes.AddChart.Select '¼W¥[¹Ï§Î
            ActiveChart.ChartType = xlLineMarkers '¹Ï§ÎÃþ«¬
            ActiveChart.ApplyLayout (5) '¹Ïªí¼Ë¦¡
            ActiveChart.SetSourceData Source:=Sheets(F).Range(Cells(1, k), Cells(2, k)) '¸ê®Æ½d³ò<----1004
        Next
End Sub

¨S¶K§¹¾ã­×¥¿¦p¤U
Sub hihi()

    Sheets("rawdata").Select
    Cells(300, 1).End(xlUp).Select
    endDD = Selection.Row
    Cells(1, 1000).End(xlToLeft).Select
    endRR = Selection.Column

        For F = 6 To Sheets.Count
            For K = 1 To endRR
            
            Range(Cells(1, 1), Cells(2, K)).Select
            'Range(Cells(1, k), Cells(2, k)).Select
            ActiveSheet.Shapes.AddChart.Select '¼W¥[¹Ï§Î
            ActiveChart.ChartType = xlLineMarkers '¹Ï§ÎÃþ«¬
            ActiveChart.SetSourceData Source:=Sheets(F).Range(Cells(1, 1), Cells(2, K)) '¸ê®Æ½d³ò
            ActiveChart.ApplyLayout (5) '¹Ïªí¼Ë¦¡
            ActiveChart.ChartTitle.Select
            Selection.delete
            ActiveChart.Axes(xlValue).AxisTitle.Select
            Selection.delete
         

           
            Next
        Next
End Su

TOP

        ÀR«ä¦Û¦b : ¦¨¥\¬OÀuÂIªºµo´§¡A¥¢±Ñ¬O¯ÊÂIªº²Ö¿n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD