If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Problem with plotting series along secondary Y-Axis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-10, 07:40
dg1069 dg1069 is offline
Registered User
 
Join Date: Apr 2010
Posts: 13
Problem with plotting series along secondary Y-Axis

Hi,

I am using following piece of code to update a chart,

ActiveChart.SeriesCollection(4).Select
ActiveChart.SeriesCollection(4).ChartType = xlLineMarkers
ActiveChart.SeriesCollection(4).AxisGroup = 2
ActiveChart.SeriesCollection(4).XValues = rng1
ActiveChart.SeriesCollection(4).Values = rng11

where rng1 & rng2 are calculated dynamically using the following piece of code:

Set rng1 = Sheets(inputSheet).Range(Sheets(inputSheet).Cells( iRow1, 1), Sheets(inputSheet).Cells(iRow2, 1))

Set rng11 = Sheets(inputSheet).Range(Sheets(inputSheet).Cells( iRow1, 158), Sheets(inputSheet).Cells(iRow2, 158))

The problem is sometimes this works, but sometimes it doesn't. It doesn't throw an error but I can't even see the plot though value is present. I am using XL 2003. Please help as this is too urgent!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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