Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dim Line Labels?


I am dealing with a macro that makes several graphs. The label for the
lines of the graphs depend on the number attached to the name of the
file. I do not want to have to go into the VB code and find and replace
the numbers for each of them. Is there anyway I can write this at the
top and have it go for each of them? I tried this earlier with no
sucess, but I will post it to help you better understand what I am
talking about. It looked something like this:

Dim plot300K as Name
plot300K = "13T300K2per0500"



ActiveChart.SeriesCollection(1).Name = "=""plot300K"""


--
Losse
------------------------------------------------------------------------
Losse's Profile: http://www.excelforum.com/member.php...o&userid=24813
View this thread: http://www.excelforum.com/showthread...hreadid=386782

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dim Line Labels?


Dim plot300K as String
plot300K = "13T300K2per0500"
ActiveChart.SeriesCollection(1).Name = plot300K


--
Rich_z
------------------------------------------------------------------------
Rich_z's Profile: http://www.excelforum.com/member.php...o&userid=24737
View this thread: http://www.excelforum.com/showthread...hreadid=386782

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dim Line Labels?


I tried that before switching over to Dim as Name. When I dim it as
string, it simply gives it the name "plot300K."

Edit: Nevermind. I had forgotten to take the quotation marks out

--
Loss
-----------------------------------------------------------------------
Losse's Profile: http://www.excelforum.com/member.php...fo&userid=2481
View this thread: http://www.excelforum.com/showthread.php?threadid=38678

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dim Line Labels?


Because you had the string Plot300k in quotes.

Remove the quotes and it becomes a variable rather than a string
constant


--
Rich_z
------------------------------------------------------------------------
Rich_z's Profile: http://www.excelforum.com/member.php...o&userid=24737
View this thread: http://www.excelforum.com/showthread...hreadid=386782

Reply
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
labels in line chart GrandMufti Charts and Charting in Excel 1 April 28th 08 10:55 PM
X axis labels won't line up under corresponding column data - help! Janet Charts and Charting in Excel 2 July 17th 06 11:14 PM
Min, Max Value Labels in Line Chart Freddy Charts and Charting in Excel 1 May 10th 06 04:07 AM
Can I link timeline labels to a line chart? hizzle Charts and Charting in Excel 1 December 6th 05 09:36 AM
Moving data labels around with VBA (and adding a line between two Caro-Kann Defence Charts and Charting in Excel 4 November 30th 05 08:51 AM


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

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

About Us

"It's about Microsoft Excel"