Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Using VBA to update Chart Sheet formats and axis titles

I have a chart (ChartSheet1)which populates based on a drop down box.
The drop down box sends a variable to Sheet2. Chartsheet1 range feeds
from Sheet2 based on this variable.

How do I use a WorkSheet_Change event to track the change in the
variable in Sheet2 so that I can modify the formats and title of my
chart?

RK
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using VBA to update Chart Sheet formats and axis titles

Change doesn't fire on a change caused by a calculation. The calculate
event would, but does't identify what triggered the caculation or what has
changed. You would need to store the value and compare it to the current
value to determine if the value has changed.

The Change event fires when a manual or a DDE change is made to the cell.

--
Regards,
Tom Ogilvy

wrote in message
om...
I have a chart (ChartSheet1)which populates based on a drop down box.
The drop down box sends a variable to Sheet2. Chartsheet1 range feeds
from Sheet2 based on this variable.

How do I use a WorkSheet_Change event to track the change in the
variable in Sheet2 so that I can modify the formats and title of my
chart?

RK



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Using VBA to update Chart Sheet formats and axis titles

You don't need VBA change chart data or titles with a worksheet control.
Use controls from the Forms toolbar, and use the cell link value as a
parameter in a dynamic range definition. Then use this dynamic range in
the chart source data or in the cell that the chart or axis title is
linked to. Here is a page with hints about this:

http://peltiertech.com/Excel/Charts/Dynamics.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

wrote:

I have a chart (ChartSheet1)which populates based on a drop down box.
The drop down box sends a variable to Sheet2. Chartsheet1 range feeds
from Sheet2 based on this variable.

How do I use a WorkSheet_Change event to track the change in the
variable in Sheet2 so that I can modify the formats and title of my
chart?

RK


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Using VBA to update Chart Sheet formats and axis titles

.... pressed Send too soon.

You can use a control to run a macro. Right click on a Forms toolbar
control and select Assign Macro from the pop up menu. Right click on the
Control Toolbox control and select View Code, then use the right hand
dropdown at the top of the code window in the VB Editor to select the
event you want to fire.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

wrote:

I have a chart (ChartSheet1)which populates based on a drop down box.
The drop down box sends a variable to Sheet2. Chartsheet1 range feeds
from Sheet2 based on this variable.

How do I use a WorkSheet_Change event to track the change in the
variable in Sheet2 so that I can modify the formats and title of my
chart?

RK


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
Custom chart template axis titles Russ Charts and Charting in Excel 0 January 12th 10 02:30 PM
Using a 'Name' to Update Chart Titles & "Y" Axis Scale Stilltrader47 Charts and Charting in Excel 2 November 28th 09 06:03 AM
Chart and Axis Titles relative reference Steve[_10_] Charts and Charting in Excel 1 November 9th 07 05:31 AM
I have problem with chart titles Value 'Y' Axis Ramesh Babu Excel Worksheet Functions 1 August 3rd 06 01:29 PM
chart axis Titles seedbankstudy Charts and Charting in Excel 0 October 5th 05 06:41 PM


All times are GMT +1. The time now is 03:00 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"