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: 10
Default LegendKey modification Error

My purpose is to modify legenkey. To change its color,
style, and delete anneccesary ones. I am using follow VB
script

Dataset = 60
for i = 1 to Dataset
ActiveChart.Legend.LegendEntriesi).LegendKey.Borde r
.ColorIndex = 39
next i

It only works for 30, then show Run-time Error 1004:
Unable to get the Legendkey property of the LegendEntry
class.

There are total 62 data items on the chart. I can manual
modify the item 31 and Macro_recorder shows it is
LegendEntries(31). But it couldn't work using macro. What
is the reason and how to solve it? Thanks.

 
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
IP ADDRESS MODIFICATION calvin Excel Discussion (Misc queries) 6 October 31st 08 02:15 PM
Macro Modification carl Excel Worksheet Functions 0 May 4th 07 04:17 PM
last modification Chip Smith Excel Discussion (Misc queries) 1 June 19th 06 11:55 PM
Last Modification Date Hal Excel Worksheet Functions 2 May 22nd 06 08:44 PM
Code Modification Todd Huttenstine Excel Programming 1 March 7th 04 03:54 AM


All times are GMT +1. The time now is 11:56 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"