Hi, I hope someone can help there, cause I spent the last 15h trying to find a forum with an answer and nobody seems to have had the same problem than me, even if it is quite simple ...
So, I have a Sheet with a certain amount of data on it. It is produced by macro and has max 50 columns and max 500 rows.
It means that my macro produce one time a block (always block) with 5 columns and 100 rows, and sometimes 35 columns and 300 rows (for example !!).
it looks like:
andy john jane
rt 4 2 3
he 3 4 23
ns 1 7 3
mw 4 3 7
So, I want from this point to create a chart (the options of the chart, I can deal with) with this block, but only with the data that are in the block.
If I take the range 50 columns, 500 rows, I get a stupid graph with 3 lines of data, and 497 empty lines ... cause excel does not understand that empty columns are not data.
I found some macro that allow to select only row and columns that are not empty, but after, I can't get this into the macro doing the chart itself ...
Things like
Set atr = Range(CurrentRegion)
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range(atr)
do not work at all ..
please HELP me !!!
julien
Bookmarks