BTW, I have Excel 2010
I've tried looking for (and trying various methods of) a solution, and have been unsuccessful so far. I have a large worksheet, with a header row (Row 1) with the date for each row (eg, Cell B1 1/1/16, Cell C1 1/2/16, ..., Cell NC1 12/31/16), event ids in the respective row in Column A (e.g. Cell A2 "Event 1", Cell A3 "Event 2", etc), and the data for each day for each event in the respective cell (eg, cell C3 has the number of occurrences of Event 2 on 1/2/16).
There are more than 256 events (rows).
I want to chart the yearly data for any particular event with a macro, by placing my cursor on the row desired and launching the macro, generating a new chart page with the title of the name of the event in column A (eg Event 2), the dates from columns B-NC as the X-axis labels, and the series label of the event name (eg, Event 2). This works fine if I ctrl-click in the row I want, but if I merely click in the line, I get the run-time error '1004': The maximum number of data series per chart is 255 on the Charts.Add statement.
It appears (from the flash of a screen if i reduce the number of rows) that the Charts.Add is, the the absence of a ctrl-click selection, assuming I want to chart *ALL* the rows.Please Login or Register to view this content.
I've tried placing variations of all of the following before the Charts.Add to undo that assumption, to no avail:
myRow and myCol are the row and column of my active cell. myName is the name of the worksheet with the data.Please Login or Register to view this content.
Any help is appreciated. Thanks in advance!
Bookmarks