Hi, i need to make one loop macro from all this macros.
This is the macro 1:
Macro 2
macro 3
macro 4
Basically the only difference is the range that offsets with three rows.
Can this be done?
Thanks in advance
This is the macro 1:
Code:
Sub Macro3()
Dim myrange As Range
Set myrange = Range("E4:P4,E5:P5")
ActiveSheet.Shapes.AddChart.Select
ActiveChart.SetSourceData Source:=myrange
ActiveChart.ChartType = xlLineMarkers
End Sub
Code:
Sub Macro3()
Dim myrange As Range
Set myrange = Range("E4:P4,E8:P8")
ActiveSheet.Shapes.AddChart.Select
ActiveChart.SetSourceData Source:=myrange
ActiveChart.ChartType = xlLineMarkers
End Sub
Code:
Sub Macro3()
Dim myrange As Range
Set myrange = Range("E4:P4,E11:P11")
ActiveSheet.Shapes.AddChart.Select
ActiveChart.SetSourceData Source:=myrange
ActiveChart.ChartType = xlLineMarkers
End Sub
Code:
Sub Macro3()
Dim myrange As Range
Set myrange = Range("E4:P4,E14:P14")
ActiveSheet.Shapes.AddChart.Select
ActiveChart.SetSourceData Source:=myrange
ActiveChart.ChartType = xlLineMarkers
End Sub
Basically the only difference is the range that offsets with three rows.
Can this be done?
Thanks in advance