Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default User selection of charts

I need an approach for users to select various charts that may be on
different worksheets. The selected charts will be collected into a list for
additional processing, such as printing, moving to a common worksheet, etc.

I can't seem to find an easy to way have the users select the charts.
Suggestions?

--
Using Excel for more efficient buildings.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default User selection of charts

This should give you some help with how to identify the charts in a workbook...

For i = 1 To Sheets.Count
If UCase(TypeName(Sheets(i))) = "CHART" Or _
Sheets(i).ChartObjects.Count 0 Then
Debug.Print TypeName(Sheets(i)) & " - " & _
Sheets(i).Name & " - " & _
Sheets(i).ChartObjects.Count
End If
Next i

This snippet will list sheets that are charts and identify sheets that have
charts on them.
--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"Bill" wrote:

I need an approach for users to select various charts that may be on
different worksheets. The selected charts will be collected into a list for
additional processing, such as printing, moving to a common worksheet, etc.

I can't seem to find an easy to way have the users select the charts.
Suggestions?

--
Using Excel for more efficient buildings.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default User selection of charts

Thanks for the response, Gary.

That was related to some code I was already using, and slightly better, so
it was helpful. But it didn't address my core challenge.

It appears my solution will be one of two things:

(1) Copy all charts in the workbook to a single worksheet, and let the user
select them there. This obviously isn't particularly efficient, but it
should be clear.
(2) Upon a (menu) request for the additional processing, add a button to
each sheet containing a chart, and have the user click the button after
selecting each chart he or she wants to include. The buttons are then
deleted after the .OnAction code is run, or for sheets where no charts were
selected, when the additional processing is run.

One of these solutions will have to suffice.

Thanks,
Bill
--
Using Excel for more efficient buildings.


"Gary Brown" wrote:

This should give you some help with how to identify the charts in a workbook...

For i = 1 To Sheets.Count
If UCase(TypeName(Sheets(i))) = "CHART" Or _
Sheets(i).ChartObjects.Count 0 Then
Debug.Print TypeName(Sheets(i)) & " - " & _
Sheets(i).Name & " - " & _
Sheets(i).ChartObjects.Count
End If
Next i

This snippet will list sheets that are charts and identify sheets that have
charts on them.
--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"Bill" wrote:

I need an approach for users to select various charts that may be on
different worksheets. The selected charts will be collected into a list for
additional processing, such as printing, moving to a common worksheet, etc.

I can't seem to find an easy to way have the users select the charts.
Suggestions?

--
Using Excel for more efficient buildings.

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
selection and visibility, lost charts Rene Charts and Charting in Excel 0 January 19th 09 11:40 PM
HELP! selection box to display charts Cam Excel Worksheet Functions 0 June 13th 08 09:41 PM
Dynamic data selection for charts sudheera Charts and Charting in Excel 1 June 10th 08 09:08 AM
charts; Selection & views? Boswell Charts and Charting in Excel 1 October 14th 07 02:08 AM
Identifing charts by user selection Dan Thompson Excel Programming 2 May 11th 06 05:23 PM


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