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: 4
Default VBA: Adding contents of a cell to a chart as a textbox (or image,

Hi,

I am in the process of creating a macro which subtotals sheets by a column
value (which contains survey respondents' ID, such as "Respondent 205", etc).
The subtotals compute averages.

I have written code which find's each person's range of averages and plots
them. Each person gets their own chart and the cell references are never
absolute, because this macro will be applied to sheets with varying numbers
of people/charts and varying observations (rows) per person.

The problem is that I can not make "ActiveChart.SeriesCollection(1).Name ="
work with a variable or (relative) named range - unless I am wrong it is very
inflexible. Thus it is a dead end.

So what I am hoping is possible is that I can have the macro select a cell
with the respondent's ID and paste/transfer that info to the chart. I can
select the correct cell with a reference like "ActiveCell.Offset(0,
-2).Range("A1").Select)" where the original activecell is selected by my
find/name-range macros I mentioned above.

I can not figure out how to get this info on the chart (I don't want it
added to a series - I just want it to appear on the chart somewhere, in some
blank space or perhaps in the title).

Any ideas?

Thanks very much in advance for your help

Jason

P.S. These charts are their own tabs, not embedded within a sheet


 
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
Adding an image to a cell Zack Excel Worksheet Functions 1 January 14th 09 06:57 PM
Adding shape-type textbox into excel chart sheet [email protected] Excel Programming 2 August 20th 06 08:26 AM
Copy contents of textBox to Cell in Excel Shashi Bhosale Excel Programming 0 June 14th 06 04:05 PM
Putting Cell contents into a TextBox? PEno1 Excel Programming 2 December 3rd 04 03:31 AM
copy cell contents to a textbox 255 characters mcadle Excel Programming 7 September 7th 04 07:39 AM


All times are GMT +1. The time now is 06:25 AM.

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"