Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JB
 
Posts: n/a
Default Why can't I embed a button on a chart in Excel 2003?

In Office Excel 2003 (11.6355.6360) SP1 I am trying to put a command button
and a couple of radio buttons on a chart. I cannot select any of the
controls on the Control Toobox as I can in Excel 2000.
  #2   Report Post  
Andy Pope
 
Posts: n/a
Default

Hi,

You can not embed Active X controls within a chart and or chartsheet.
You can however use the controls from the Forms toolbox.

Cheers
Andy

JB wrote:
In Office Excel 2003 (11.6355.6360) SP1 I am trying to put a command button
and a couple of radio buttons on a chart. I cannot select any of the
controls on the Control Toobox as I can in Excel 2000.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Ewan
 
Posts: n/a
Default

Thanks. I know that it can be done in Excel 2000 so I would assume that they
have removed this feature for a reason. Any ideas?

"Andy Pope" wrote:

Hi,

You can not embed Active X controls within a chart and or chartsheet.
You can however use the controls from the Forms toolbox.

Cheers
Andy

JB wrote:
In Office Excel 2003 (11.6355.6360) SP1 I am trying to put a command button
and a couple of radio buttons on a chart. I cannot select any of the
controls on the Control Toobox as I can in Excel 2000.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

  #4   Report Post  
Andy Pope
 
Posts: n/a
Default

No, you couldn't do it in xl2000 either. Check the controls I think you
will either find them to be from the Forms toolbox or not embedded
within the chart object if its a chart on a worksheet.

Cheers
Andy

Ewan wrote:
Thanks. I know that it can be done in Excel 2000 so I would assume that they
have removed this feature for a reason. Any ideas?

"Andy Pope" wrote:


Hi,

You can not embed Active X controls within a chart and or chartsheet.
You can however use the controls from the Forms toolbox.

Cheers
Andy

JB wrote:

In Office Excel 2003 (11.6355.6360) SP1 I am trying to put a command button
and a couple of radio buttons on a chart. I cannot select any of the
controls on the Control Toobox as I can in Excel 2000.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #5   Report Post  
Tushar Mehta
 
Posts: n/a
Default

Well, one can always put the ActiveX control on the sheet, position it
so that it appears on top of the chart, and then group the two
together. However, in this case, you will need to access the chart
through a somewhat more complex method. The foll. works for a
commandbutton:

Option Explicit

Private Sub CommandButton1_Click()
With Me.Shapes(1).GroupItems(1).OLEFormat.Object.Chart
.HasTitle = True
.ChartTitle.Text = Format(Now(), "hh:mm:ss")
End With
End Sub

How did I figure out the heirarchy? By stepping through the object
model as below. Hint: start at the bottom and work your way up.

?typename(me.shapes(1).GroupItems(1).OLEFormat.Obj ect.chart)
Chart
?typename(me.shapes(1).GroupItems(1).OLEFormat.Obj ect)
ChartObject
?typename(me.shapes(1).GroupItems(1).OLEFormat)
OLEFormat
?typename(me.shapes(1).GroupItems(1))
Shape
?me.Shapes(1).GroupItems.Count
2
?me.shapes.count
1

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Thanks. I know that it can be done in Excel 2000 so I would assume that they
have removed this feature for a reason. Any ideas?

"Andy Pope" wrote:

Hi,

You can not embed Active X controls within a chart and or chartsheet.
You can however use the controls from the Forms toolbox.

Cheers
Andy

JB wrote:
In Office Excel 2003 (11.6355.6360) SP1 I am trying to put a command button
and a couple of radio buttons on a chart. I cannot select any of the
controls on the Control Toobox as I can in Excel 2000.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info




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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
how to change range for dynamic chart in excel 2000 with button? ivan Charts and Charting in Excel 2 April 24th 05 04:10 AM
Excel chart like the FTSE chart Charts and Charting in Excel 0 February 9th 05 02:26 PM
How to change the color of all series in an excel chart in one go. Mz2 Charts and Charting in Excel 1 January 20th 05 01:07 AM
Adding a chart to a Word template linked to an Excel doc. Bobbie Excel Discussion (Misc queries) 0 January 3rd 05 08:07 PM


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