Solved

How to Copy Chart Across Multiple Similar Worksheets?

Posted on 2011-09-29
3
583 Views
Last Modified: 2012-06-21
I have a workbook with multiple worksheets with data in the same format in each.  I would like to take a chart formatted for the first worksheet, and copy it to all of the other worksheets to utilize the same formating but use the data in its own worksheet.  

I know I can copy the first chart and paste with source formatting to the other worksheets, and then change the source data in each chart.  Is there an easier way to accomplish this?
0
Comment
Question by:sxlowry
3 Comments
 
LVL 8

Accepted Solution

by:
ragnarok89 earned 500 total points
ID: 36817287
Yes,

on a sheet that has only data, start recording a Macro. Build your chart, and stop recording. Now you have a VBA macro that builds charts on whatever worksheet you happen to be on. Just add a loop to your macro, like:

For each sht in worksheets
   range("A1").select
   --- recorded macro code ---
next sht

That should do it.
0
 
LVL 9

Expert Comment

by:Ramanhp
ID: 36817327
u simply create one sheet ( i.e. the first sheet) the way u have

now simply create a duplicate copy of that sheet
to achieve this, just drag the sheet bar from the bottom holding the ctrl key
thats all,

repeat the above step for any new sheet u like to create.

i hope this will save your time and give u results as desired
0
 

Author Closing Comment

by:sxlowry
ID: 36892254
Thanks for your help.

Steve
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now