473,473 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Changing Series in Graphs via Excel VB

34 New Member
Hello... I have a number of graphs I receive from a 3rd party vendor, and within the graphs are charts indicating specific membership information.
I.e. - "Red Membership", "Blue Membership", "Green Membership", ect.... and the membership line could be anywhere in the chart (not just on the 2nd or 3rd line).

I'd like to run code to go through each datachart and if it includes the word "membership" to simply replace the series with "Total Membership".... regardless of the word preceeding 'membership' in the series.

The membership used to always be in the series 3 position, however now it can be anywhere.... so I need some sort of loop to go through each series and change it only if it has the word 'membership'. Here's what I had previously for changing the phrase in the 3rd series position:


ActiveChart.SeriesCollection(3).Name = "=""Total_Membership"""
ActiveWindow.Visible = True
If ws.Index <> 1 And ws.Index <> 2 Then ws.Select False
If ws.Index > 1 Then ws.Select True
Next ws

Hope this makes sense. Any help is appreciated!
Jan 15 '09 #1
0 1278

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: mscir | last post by:
I'm trying to find thorough documentation for creating graphs using serverside Excel from ASP. Any book recommendations? A well-documented COM wrapper would be nice if it allowed us to create...
0
by: Rach | last post by:
Hi, Does anyone know how to export charts/graphs from EXCEl into Powerpoint-Microsoft Charts though VBA code. I would like to import the underlying data with the chart as well. I know we can...
0
by: karen s via AccessMonster.com | last post by:
I searched the knowledge base for a way to do this but am having no luck with it. The directions state to select the data series that you want to plot along a secondary value axis, then on the...
5
by: Ray Tomes | last post by:
Hi Folks I am an old codger who has much experience with computers in the distant past before all this object oriented stuff. Also I have loads of software in such languages as FORTRAN and...
0
by: gregoryenelson | last post by:
Does anybody know how to change data series from a histogram/bar representation to a line in a Graph on a Report? I have 5 measurements I need to follow. I created the report and the queries and...
1
by: tdeve | last post by:
I am creating excel charts via C# and would need to dynamically create N number of series for a particular chart. I have yet to come across a viable solution that meets my needs and am open to any...
0
by: naish | last post by:
Hi, My code drawing a graph in excel sheet. There one colum for lower pressure and another one for upper pressure. Any howi can draw a series for one pressure but i am not able to draw two series...
4
by: =?UTF-8?B?4KSw4KS14KWA4KSC4KSm4KSwIOCkoOCkvuCkleCl | last post by:
hello friends i am trying to dynamically create graphs in browsers(as in graph theory, something like this http://sawamuland.com/flash/graph.html , not like excel graphs) but i am unable to...
4
by: keirnus | last post by:
Hello, I've been coding in Access VBA to create an Excel Graph and it was good. Until I got this error: Please check the code below: Private Sub TestGraph3()
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.