Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Select chart object in Excel 2007

Is it possible to select an existing chart object using VBA? The chart
should be selected as if I would have clicked on it manually (thick
border around it). In Excel 2007.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Select chart object in Excel 2007

activesheet.ChartObjects(1).Select

--
Regards,
Tom Ogilvy


"Luca Brasi" wrote:

Is it possible to select an existing chart object using VBA? The chart
should be selected as if I would have clicked on it manually (thick
border around it). In Excel 2007.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Select chart object in Excel 2007

thanks tom, but this does not select the chart object as if you would
have selected it manually (in Excel 2007). Or does it at your place?? I
have just one Office 2007 installation available for doing some testing.

Tom Ogilvy wrote:
activesheet.ChartObjects(1).Select

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Select chart object in Excel 2007

try this instead:

ActiveSheet.ChartObjects(1).Activate
ActiveChart.ChartArea.Select

You can use the name like "Chart 1" instead of the index number in Chart
Objects.

--
Regards,
Tom Ogilvy


"Luca Brasi" wrote:

thanks tom, but this does not select the chart object as if you would
have selected it manually (in Excel 2007). Or does it at your place?? I
have just one Office 2007 installation available for doing some testing.

Tom Ogilvy wrote:
activesheet.ChartObjects(1).Select


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Select chart object in Excel 2007

Tom, great! works!
Many thanks


Tom Ogilvy wrote:
try this instead:

ActiveSheet.ChartObjects(1).Activate
ActiveChart.ChartArea.Select

You can use the name like "Chart 1" instead of the index number in Chart
Objects.



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 to display an object name in the Name Box in Excel 2007? Q Charts and Charting in Excel 2 August 14th 09 09:26 PM
Excel 2007 error "some chart types cannot be combined with other chart types. Select a different chart types" roadsidetree Charts and Charting in Excel 15 June 2nd 09 10:53 AM
Excel 2007 - Could not load an object because it is not available Lou Excel Discussion (Misc queries) 2 May 3rd 08 11:01 AM
Creating resizing macro - select chart as object? ellinoz Charts and Charting in Excel 3 April 4th 08 09:33 AM
How do I initiate the windows printer select object in Excel macro Mick B[_2_] Excel Programming 1 January 13th 05 09:46 PM


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