|
-
Feb 4th, 2008, 02:24 PM
#1
Thread Starter
Member
All charts in 1 sheet
Hi to all,
I have an Excel file with 4 different sheets in it. Each of those sheet contains a chart and i would like to put all those charts in the same one sheet...in a way that i can see all charts (eg. 1/4 page for each chart in this case). I would also have the code to be flexible and work for n number of charts.
TIA
-
Feb 5th, 2008, 02:18 AM
#2
Re: All charts in 1 sheet
easy to do, loop through all the sheets in the workbook, loop through the charts on each sheet, then copy each chart to the destination sheet, you may need to count the number of charts, to work out the positions on the destination sheet
try recording a macro to copy 1 chart first, then look at removing all references to active anything or selection, working with the full address of the sheet and chart object
then you can work into doing the loops
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|