LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Excel 2007 - Legend.Position

I have the following code that sets the Legend position for a chart object

For Each objCht In WS.ChartObjects
With objCht.Chart
.Legend.Position = xlLegendPositionBottom
End With
Next

It stops on the .legend.position line with the error

Run-time error '-217467259 (80004005)':

Method 'Position' of object 'Legend' failed.

But then I can step right through the code without a problem. What gives?

Thanks,
Barb Reinhardt


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Legend Overlaps Chart in Excel 2007 David Billigmeier Charts and Charting in Excel 5 April 21st 23 10:11 PM
Excel 2007. Is it possible to format Legend Key? jkrons Charts and Charting in Excel 3 October 24th 09 04:15 AM
Excel 2007 Legend Key Problem veronica Charts and Charting in Excel 0 November 30th 07 09:14 PM
Legend in Chart changes position every time I copy the graph AR Excel Discussion (Misc queries) 0 May 16th 07 06:22 AM
Legend box position resetting when reopening file donger Charts and Charting in Excel 0 May 19th 06 08:44 PM


All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"