laughingdevil
New Member
- Joined
- Aug 5, 2011
- Messages
- 40
Hi
I need some help if possible, and for the first time I can't find what I need in previous posts on this site!
I am working on a report that includes some "thermometers" that show the quality of the data collected, I'm adding lots of new funcunality to somthing developed by my predecessor, who did this by having a different shape for each data quality "band" and selecting that from excel and copying it to word, however there are now so many it's getting silly, so I'm working on having one shape and dynamically altering it to show what I want.
I've got the chart colour shape colour etc to change dynamically, so am almost there, what I need to do now is to change the formula that is associated with the shape (note this is not for the shapes textbox, but for the shape itself), so by default when you click on the shape the formula bar has "=dq_poor" in it, which I need to change, I've tried using code similar to what I've found for textboxes and cells to no avail. The line I'm using is this
" xls.Shapes.Range("dq_oval").Formula = "dq_moderate" "
This sort of code works well for other things I mentioned above, but not this, any help would be appreciated.
I've tried to be as complete as I can be, but feel free to ask any q's you need to to get to the bottom of this.
I need some help if possible, and for the first time I can't find what I need in previous posts on this site!
I am working on a report that includes some "thermometers" that show the quality of the data collected, I'm adding lots of new funcunality to somthing developed by my predecessor, who did this by having a different shape for each data quality "band" and selecting that from excel and copying it to word, however there are now so many it's getting silly, so I'm working on having one shape and dynamically altering it to show what I want.
I've got the chart colour shape colour etc to change dynamically, so am almost there, what I need to do now is to change the formula that is associated with the shape (note this is not for the shapes textbox, but for the shape itself), so by default when you click on the shape the formula bar has "=dq_poor" in it, which I need to change, I've tried using code similar to what I've found for textboxes and cells to no avail. The line I'm using is this
" xls.Shapes.Range("dq_oval").Formula = "dq_moderate" "
This sort of code works well for other things I mentioned above, but not this, any help would be appreciated.
I've tried to be as complete as I can be, but feel free to ask any q's you need to to get to the bottom of this.