Hi, I want to loop thru each worksheet in my workbook and create a new stacked column chart from each table on that sheet.
Code using is:
'Set src = Selection
'With Charts.Add
' .ChartType = xlColumnStacked
' .SetSourceData Source:=src, PlotBy:=xlRows
' .Location Where:=xlLocationAsObject, Name:="Sheet1"
How do I change code to reference current ws and not Sheet1 as it loops?
Thanks in advance
Code using is:
'Set src = Selection
'With Charts.Add
' .ChartType = xlColumnStacked
' .SetSourceData Source:=src, PlotBy:=xlRows
' .Location Where:=xlLocationAsObject, Name:="Sheet1"
How do I change code to reference current ws and not Sheet1 as it loops?
Thanks in advance
Last edited: