Hi,
I draw multiple charts on a spreadsheet.
for placing them I use this code: Set rng: Activesheet.Range(A100:N125) that draws me a 25-row high chart to A 100 to N125, working fine
when not all the charts are required, I want to be able to select them and place them automatically in the next empty place.
I created a checkbox, where users can select which chart to display, and the related excel sheet calculates the A and N positions of the chart.
I created variables and made this code:
Set rng: Activesheet.Range("ChartFirstRow:ChartLastRow")
apparently, the variables are working because with SHIFT+F9 I can see the right value from the table, yet VN gives 1004 run-time error
Application-defined or object-defined error.
the chart is drawn, but with the wrong size and wrong location...
any idea how to fix it?
I draw multiple charts on a spreadsheet.
for placing them I use this code: Set rng: Activesheet.Range(A100:N125) that draws me a 25-row high chart to A 100 to N125, working fine
when not all the charts are required, I want to be able to select them and place them automatically in the next empty place.
I created a checkbox, where users can select which chart to display, and the related excel sheet calculates the A and N positions of the chart.
I created variables and made this code:
Set rng: Activesheet.Range("ChartFirstRow:ChartLastRow")
apparently, the variables are working because with SHIFT+F9 I can see the right value from the table, yet VN gives 1004 run-time error
Application-defined or object-defined error.
the chart is drawn, but with the wrong size and wrong location...
any idea how to fix it?