Any thoughts on this? I'm able to record the procedure in Excel 2000 but when I try using that code in 2007, I get an error.
On May 21, 1:12 am, Satish Mandava <comdexanal...@gmail.com> wrote: > On Thu, May 21, 2009 at 2:41 AM, Dave <dtordon...@gmail.com> wrote: > > > Hi all, new to the group and fairly new to VBA programming. Here is > > my question: > > > I'm writing a Macro to automate chart formatting tasks in Excel 2007. > > I noticed that the macro recorder does not record all of my steps and > > I can't figure out which commands to use from the object browser so > > hopefully somebody here can help me. > > > My chart is a 3D contour plot. I'm trying to specify which colors are > > associated with certain numerical ranges in the plot and the legend. > > Manually, I accomplish this by selecting the individual legend entry, > > right clicking and selecting "format band" and then selecting the > > solid fill option with my preferred color. > > > So far I have a hunch that the right code might go something like > > this: > > > ActiveChart.Legend.LegendEntries(1).Fill.ForeColor.RGB = RGB(128, 0, > > 0) > > > However, I get an error when I try to run this. Thoughts? > > Suggestions? Ridicule? > > > Thanks, > > Dave > > -- > Satish Mandava > Financial Planning Consultanthttp://investoreducation.blogspot.com- Hide > quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ ------------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com ------------------------------------------------------------------------------------- -~----------~----~----~----~------~----~------~--~---