Hey,
I dont and cant use VBA nor any other programming language at all but need this thing for my work, so sorry in advance for my phrasing;
I created a macro simply through "record macro" button in excel. The pourpose of it is to create a simple graph out of one row of a table.
Now I need to somehow make this macro run through every single row of this table and create a graph out of each one of them (the same way that it does for that one specific row that I recorded it for). I found some youtube tutorials on running a macro through rows but none of them focused specifically on graphs.
I am really sorry for asking this, but could someone advice me on how to write a code specifically for graphs? I been looking for this for hours but nothing seems to work at all.
This is how the code looks like currently;
I dont and cant use VBA nor any other programming language at all but need this thing for my work, so sorry in advance for my phrasing;
I created a macro simply through "record macro" button in excel. The pourpose of it is to create a simple graph out of one row of a table.
Now I need to somehow make this macro run through every single row of this table and create a graph out of each one of them (the same way that it does for that one specific row that I recorded it for). I found some youtube tutorials on running a macro through rows but none of them focused specifically on graphs.
I am really sorry for asking this, but could someone advice me on how to write a code specifically for graphs? I been looking for this for hours but nothing seems to work at all.
This is how the code looks like currently;
VBA Code:
Sub Likes_Grafy()
'
' Likes_Grafy Makro
'
Range("B5:J5").Select
ActiveSheet.Shapes.AddChart2(332, xlLineMarkers).Select
ActiveChart.SetSourceData Source:=Range("CZ_data!$B$5:$J$5")
ActiveChart.Location Where:=xlLocationAsObject, Name:="CZ_grafy"
ActiveSheet.ChartObjects("Graf 11").Activate
ActiveSheet.Shapes("Graf 11").IncrementLeft -201.75
ActiveSheet.Shapes("Graf 11").IncrementTop -81
ActiveSheet.ChartObjects("Graf 11").Activate
ActiveChart.Axes(xlCategory).Select
ActiveChart.FullSeriesCollection(1).XValues = "=CZ_data!$C$3:$J$3"
ActiveChart.Axes(xlValue).Select
ActiveChart.Axes(xlValue).MaximumScale = 0.2
Range("L12").Select
End Sub