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: 47
Default Index # of selected embedded chart

Hi,
Probably something simple that I missed. I'd like to access the index
number (rather than text name) of the selected chart on a particular sheet.
I'd like to prompt a confirmation message to a specific action a user will
take that will affect the selected chart and I'd like to include the chart
number in the confirmation message. As I've discovered, the name loses
significance as multiple charts are created and deleted over time. There's
some other work arounds that I can do but if I can activate a chart using an
index number, I'd hope that I could read this same number somehow.
So in my code I can envision something like....

Sub ConfirmationMsg

Dim ans as integer

ans = Msgbox ("You are about to change something on Chart #" &
activechart.index & chr(10) & "Do you want to continue?",vbYesNo)

End Sub

Unfortunately, I can get any variation of *.index to work.

Thanks much.
 
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
Extracting chart title from Embedded Excel Chart in PowerPoint Barb Reinhardt Excel Programming 1 June 11th 08 02:22 PM
How to set the selected state of an embedded ActiveX listbox [email protected] Excel Discussion (Misc queries) 1 February 5th 07 09:30 PM
Embedded Chart Versus Chart - ShowDetail Issue [email protected] Charts and Charting in Excel 1 May 14th 06 04:11 PM
How do I open and print selected embedded .docs in Excel Queenshero Excel Programming 0 March 6th 05 08:43 PM
How To: Get the index value of the selected color KM[_2_] Excel Programming 1 December 10th 03 04:42 PM


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