Hi! I have a VBA question.
I have a bar graph showing the the number of sales every month for the last 5 months.
For example: 1000 in Oct, 1200 in Nov, 1300 in Dec, 950 in Jan, and 800 in Feb
The Months are in One row (Row A), the number of sales are in another row (Row B).
Next month, I want to show the number of sales for (Nov, Dec, Jan, Feb, March) on the graph. The month after, it would shift again (Dec, Jan, Feb, March, April) and so on
And then keep on repeating that as months go by (looping)
How would I code that loop on VBA?
Or is there an easier way?
Thanks for the help!
I have a bar graph showing the the number of sales every month for the last 5 months.
For example: 1000 in Oct, 1200 in Nov, 1300 in Dec, 950 in Jan, and 800 in Feb
The Months are in One row (Row A), the number of sales are in another row (Row B).
Next month, I want to show the number of sales for (Nov, Dec, Jan, Feb, March) on the graph. The month after, it would shift again (Dec, Jan, Feb, March, April) and so on
And then keep on repeating that as months go by (looping)
How would I code that loop on VBA?
Or is there an easier way?
Thanks for the help!