J
Jim Kelly
Hi,
I've seen this subject posted before but could not work out my problem
with the answers to those posts, so I'll start my own
I wrote a VB program that invokes Excel and reads data into it (ADO),
selects the appropriate range, then creates a chart on that worksheet.
I then copy that chart to a new worksheet named "Charts" and then run
through the process a number of times depending on the number of
elements a user has asked for (stock symbols). It does this fine
except it places the charts one on top of the other on the "Charts"
sheet. I've tried using the .Top property, but get errors (I'd give
an example of the code I used, but I have tried every combination of
..ActiveChart.whatever that I could get my hands on), I've used macros
then VBEditor to try and emulate that code, but to no avail, and I've
tried using the .Location property specifying the "Charts" sheet
hoping that it would automatically place the second chart top where
the first chart bottom was. Again, no luck.
Since the charts are of the exact same size, I picture a simple
command that will examine the first chart size and/or location on the
sheet, then place the second chart appropriately right where the
previous chart leaves off.
Any suggestions?
Thank you!
Jim
I've seen this subject posted before but could not work out my problem
with the answers to those posts, so I'll start my own
I wrote a VB program that invokes Excel and reads data into it (ADO),
selects the appropriate range, then creates a chart on that worksheet.
I then copy that chart to a new worksheet named "Charts" and then run
through the process a number of times depending on the number of
elements a user has asked for (stock symbols). It does this fine
except it places the charts one on top of the other on the "Charts"
sheet. I've tried using the .Top property, but get errors (I'd give
an example of the code I used, but I have tried every combination of
..ActiveChart.whatever that I could get my hands on), I've used macros
then VBEditor to try and emulate that code, but to no avail, and I've
tried using the .Location property specifying the "Charts" sheet
hoping that it would automatically place the second chart top where
the first chart bottom was. Again, no luck.
Since the charts are of the exact same size, I picture a simple
command that will examine the first chart size and/or location on the
sheet, then place the second chart appropriately right where the
previous chart leaves off.
Any suggestions?
Thank you!
Jim