Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hb hb is offline
external usenet poster
 
Posts: 2
Default X axis labels from a Data Source...

Hi everyone,

Banging my head on the table for a while trying to set the
labels on the X axis from a column in another Excel sheet
(from the same workbook) programatically from VB. I found
the corresponding method manually from the Chart Data menu
option, but got lost when trying the same thing from VB6.0.
Anyone has any ideas?!?

Cheers,
h


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default X axis labels from a Data Source...

Hb wrote:
trying to set the
labels on the X axis from a column in another Excel sheet
(from the same workbook) programatically from VB.


ActiveChart.SeriesCollection(1).XValues = _
ActiveWorkbook.Sheets("Other").Range("A1:A10")


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

  #3   Report Post  
Posted to microsoft.public.excel.programming
hb hb is offline
external usenet poster
 
Posts: 2
Default X axis labels from a Data Source...

Thanks!
I was confused by the fact that some call these labels,
some call them values - never thought to look under
XValues!!!

Again, thanks.


-----Original Message-----
Hb wrote:
trying to set the
labels on the X axis from a column in another Excel

sheet
(from the same workbook) programatically from VB.


ActiveChart.SeriesCollection(1).XValues = _
ActiveWorkbook.Sheets("Other").Range("A1:A10")


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

.

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
How can I add multiple source data data labels? Julian Iles Charts and Charting in Excel 1 November 24th 08 11:58 PM
Data labels along below x axis when y axis has negative values Andrew Charts and Charting in Excel 1 July 3rd 08 08:36 PM
Setting hover data labels to cells other than source data Darren Charts and Charting in Excel 1 January 24th 06 10:20 AM
Setting hover data labels to cells other than source data Darren Excel Discussion (Misc queries) 0 January 24th 06 08:31 AM
renaming data labels by different cells than source data Darren Charts and Charting in Excel 4 January 12th 06 10:35 AM


All times are GMT +1. The time now is 08:40 AM.

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"