Hi everybody,
i'm a novice trying to write a macro for a simple graph splitter. Just one that takes the graph you're looking at and divides it up into smaller ranges.
Currently i have it working on a simple loop. The problem is you have to manually input the start and end row numbers. Also you cant change the column placements without having to change the macro code.
I basically just want to be able to tell each series where to finish and end!
for example: "=SERIES(Data!$B$1,Data!$A$2:$A$7939,Data!$B$2:$B$7939,1)"
i replace with
"=SERIES(" & chartname & "!$B$1," & chartname & "!$A$" & startval & ":$A$" & endval & "," & chartname & "!$B$" & startval & ":$B$" & endval & "," & n & ""
the only problem is, startval and endval have to be manually input in and it's restricted to graphs that use columns A and B.
Is there anyway i can pick out the values 2 & 7939 and the columns A & B from that long code.....
or does anyone have any suggestions.
any help would be appreciated. If i get a fully working independent graph splitter that could operate as a button i will submit the entire code for others to use - i think it could be popular.
cheers
duncan
i'm a novice trying to write a macro for a simple graph splitter. Just one that takes the graph you're looking at and divides it up into smaller ranges.
Currently i have it working on a simple loop. The problem is you have to manually input the start and end row numbers. Also you cant change the column placements without having to change the macro code.
I basically just want to be able to tell each series where to finish and end!
for example: "=SERIES(Data!$B$1,Data!$A$2:$A$7939,Data!$B$2:$B$7939,1)"
i replace with
"=SERIES(" & chartname & "!$B$1," & chartname & "!$A$" & startval & ":$A$" & endval & "," & chartname & "!$B$" & startval & ":$B$" & endval & "," & n & ""
the only problem is, startval and endval have to be manually input in and it's restricted to graphs that use columns A and B.
Is there anyway i can pick out the values 2 & 7939 and the columns A & B from that long code.....
or does anyone have any suggestions.
any help would be appreciated. If i get a fully working independent graph splitter that could operate as a button i will submit the entire code for others to use - i think it could be popular.
cheers
duncan