excel 2010 Paste Link radio button disabled with chart object - excel

I've created a chart in a workbook. I want to copy and paste that chart into another workbook in such a way so that when I update the original data it automatically updates both charts.
Between Excel and Word there are no problems: I can paste the chart as link (see below):
but in Excel the same option seems to be disabled:
Any idea to solve my problem? The chart copied in the destination only updates if the original file is open, and the data changed!
Many thanks in advance.

I've not done this much, but when I have I generally just paste (i.e. Ctrl+C). The chart series should be automatically updated to refer to the source workbook, the relevant worksheet within that workbook, and keep the cell ranges the same.
So my thought would be that the option isn't disabled, it's just implicitly built in to the normal paste. Which would make sense; The use-case for keeping the same source range of cells, but on the new worksheet being pasted to (even inside the same workbook, let alone in a different workbook) is not exactly one that seems crazy useful.

Related

Change worksheets number automatically in vba code

I have a VBA enabled excel workbook which has more than 20 sheets. Now the code in the VBA is using Worksheets numbers to call the worksheets.
Now I will have to delete one sheet which makes all the code unusable because if I delete one sheet the worksheet number changes.
Example Worksheets(10).Activate will point to another worksheet since I will be deleting the third worksheet
I am fairly new to this, so what would be the fastest way instead of manually changing the worksheet number in the code.
Note that there are 3 ways to access a sheet …
by its position in the tab bar:
Worksheets(10) gives the 10ᵗʰ worksheet in the tab bar.
Note that if you also have eg chart sheets the numbering is different from Sheets(10) which then might be a completely different sheet.
by its visible tab bar name:
Worksheets("Sheet10")
by its VBA name:
Sheet10
Note that the VBA name can only be changed in the Project window of the VBA-Editor.
Note that Worksheets(10), Worksheets("Sheet10") and Sheet10 can be completely different sheets, because they use 3 completey independ naming systems.
Which one to use highly depends on what you are actually trying to do. There is no best option in general each of them has their advantages and disadvantages.
Additionally I highly recommend not to use .Activate and .Select at all. Therefore read How to avoid using Select in Excel VBA.

How can I copy all of a worksheet, including pictures and charts to another workbook

This is the same question as this post. However, the solutions in the post don't answer the question.
How can I copy all of a worksheet, including charts & pictures, to a new worksheet in another workbook?
And copy the formulas across too.
I need to do this in my AddIn - C# and using the COM (note VSTO) API to Excel.
thanks - dave
Move a worksheet within a workbook
Select the worksheet tab, and drag it to where you want it.
Note: Be aware that calculations or charts that are based on worksheet data might become inaccurate if you move the worksheet.
Copy a worksheet in the same workbook
Press CTRL and drag the worksheet tab to the tab location you want.
OR
1)Right click on the worksheet tab and select Move or Copy.
2)Select the Create a copy checkbox.
3)Under Before sheet, select where you want to place the copy.
4)Select OK.

Powerpoint - remove embedded data from table

I pasted a pivot table from excel to powerpoint and chose the embed option when doing so. The deck is now very large (20MB +) due to the embedded data. Is there a way to keep the table but just drop the embedded data?
The problem is likely because you're copying from a very large Excel workbook. When you embed even one cell from an Excel worksheet, the entire workbook actually gets embedded in the PowerPoint file.
One way around this is to select the information you want to embed, copy/paste it into a new Excel workbook (NOT a new worksheet w/in the workbook), then copy/paste/embed into PPT from the new temporary workbook.
At least this'd work with regular worksheet data; it may not work for Pivot Tables (they'd be dependent on other data that wouldn't get pasted from one worksheet to the other, I'm afraid). But it's worth a shot.

Excel Charts Data Range Reference

I have a workbook with many tabs, all of which are identical in format. I want to have the same embedded charts in each worksheet. I can't seem to copy the charts from one tab to other tabs without the new data range being tied to the original worksheet tab name. My first choice is to refer to the data range as B6:B87 or =B6:B87 WITHOUT the reference being ='TabName'!B6:B87, but Excel doesn't seem to allow it.
Make copy's of the data range on the same page than cut it and past it on the page you want.it wont have the sheet name where it was copied.
Copy the entire sheet, including chart and data. The copied chart links to the data range on the copied sheet. Now replace the original data on the copied sheet with the new data. The copied chart links to the new data on the copied sheet.

Excel Data Connection Keep original formatting from other workbook

In an excel workbook, called workbook A, I set up a connection to another workbook, called workbook B for one particular spreadsheet. This is because I need the worksheet in both locations, and for it to update in the background. That is all set up and working fine, however I want to keep the original formatting. Ive searched the web and tried editing the 'Data' External Data Properties, preserving the cell formatting is enabled. However the data displaying is not in correct format.
Any help would be appreciated.
Paste twice is required.
1) Paste link
2) Paste format
See link below:
http://www.excelforum.com/excel-general/500227-how-do-i-paste-links-and-keep-formats.html

Resources