Chart Dynamic Range

Montyzzz

New Member
Joined
Jan 3, 2019
Messages
1
Hello,

Using Excel 2016. I created a chart with a chart data range from B2:F13. I created a macro that will insert a column in C:C. This causes my chart data range to now =B2:B13,D2:F13. The new data in column C is not being displayed on the chart. I have a screenshot, but I'm unsure how to display it on this message board.

Is there a setting to prevent this from happening? Is there an efficient solution out there somewhere? Thank you.
 

Some videos you may like

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

JLGWhiz

Well-known Member
Joined
Feb 7, 2012
Messages
12,450
Office Version
  1. 2013
Platform
  1. Windows
I created a chart and then named the range for the source data, including headers for both axes. I then inserted a column and added data to the column, The chart plotted the data and automatically expanded thed horizontal source range to accomodate the inserted column.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,518
Messages
5,529,314
Members
409,862
Latest member
lbisacca
Top