Pasting charts from Excel with large files - excel

I am having trouble when pasting some charts (not as a picture) from Excel into powerpoint. The problem is that the file is very large and a powerpoint which should be roughly, 200kb is around 20MB.
I was wondering if there was a way around this whereby you could paste it, but not as a picture?

You need to use Special Paste, and paste as Microsoft Graphic Object
(if you want to be able to edit it, i.e. change font, sizes, ...).
If you use the regular paste , it'll be linked and with embedded data, that is why it is so heavy!
Regretably, you canNOT change the default paste option in powerpoint like it possible in ms-word...

Related

VBA: Saving Excel range as image and pasting to PowerPoint vs directly pasting it into PowerPoint?

I'm pretty much done with my project of automating copy-pasting a bunch of ranges from Excel to a Powerpoint presentation. Now a co-worker remarked that I could save the relevant ranges as jpeg, pdf or whatever else and only then export it to Powerpoint.
This got me thinking. Is there an advantage of doing it my co-worker's way? The only one I (an inexperienced user) can think of is that I would have the data I exported on my hard drive as separate files. Are there any other advantages or even disadvantages to this method?
The main advantage of saving it through an image/pdf is the staticness of the output file. Not only on the values, but also on the format, across all users, despite the differences of versions/preferences/fonts... [Side note: I do really prefer .pdf or even .emf as these formats are vectorial, so they do not get pixelated if you are zooming in]
I would suggest using a temporary file for that. Remember to kill the file after adding it to the PowerPoint.
Here is a pseudo-code to give you the general idea:
Get the Temp file name [and file path]
Export/Print your range/tables (in whatever format you want) using the temporary file name
Import that file as an image in PowerPoint (remember to set LinkToFile:=False)
Delete the temporary file
No matters if you do the 1 or 2 way ,
About eficiency i think the Pasting directly in powerpoint is more useful and powerful bcoz is less 1 step (saving in a Directory and them put it on ppt)
If u need this informations (jpgs /pdfs) or just want to have them saved so u should use your friend's tip , but if u dont need it , just keep your way of doing the copy and paste

Enabling macros in chart data sources in Powerpoint

I have a Powerpoint file with many charts that I expect many different users to use with their own data. I'm trying to make this Powerpoint as easy to use as possible by writing VBA into each data source (by data source, I mean the default Excel sheet that is embedded in Powerpoint when you select "Insert" > "Chart"). My goal is to allow them to click the chart, select "Edit data," paste info from a PivotTable into the Excel window that pops up, and let the macro does the rest. The code I can write myself, but I have a different problem:
I've tried writing macros in these embedded Excel files but they do not save once they are closed (I assume they must be .xls or similar and not .xlsm). How can I get these macros to save? I've tried drag and dropping .xlsm files into Powerpoint, but it shows the actual charts on the slide and it's difficult to work with. I'd like the Excel files to be hidden from Powerpoint view and easily accessed using the "Edit data" option.
I hope this description makes sense, if not I can explain further / answer any questions.
Thanks!
Can't you just provide PowerPoint charts, and have them paste data into each chart's DataSheet in PowerPoint?
Of late, PPT does its best to convert pasted charts into PowerPoint charts (same basic engine as Excel charts but they're not Excel objects). You can get round this if you copy the chart from XL, switch to PPT and on the Home tab, click the downward pointing arrow below Paste, pick Paste Special and choose to paste as embedded Excel chart object.
You can then doubleclick the pasted object and Excel will launch for in-place editing.
Or you can right-click, choose "Macro enabled worksheet object" or whatever, and then opt to Open or Edit. Edit gives you in-place editing within the PPT window, Open launches the embedded data in a full copy of Excel.

Pasting Excel tables in Thunderbird e-mail client

When I paste an Excel table in Thunderbird e-mail client (ver 24.2.0) the table looses its formatting. One workaround seems to be that you paste the table from Excel to Word and then paste it in Thunderbird. But this seems a bit odd as Word and Excel are part of the same Office Suite of applications, yet their behavior is strange.
Can anybody shed any light on it?
Copy from Excel,
Paste into word -> Paste Options -> Keep Source formatting,
then highlight the table, Go to Design -> on the right, Increase the "Line Weight" to a minimum of 1 point, then click on "Borders" and select "All Borders"
Now copy this table and paste it in your Email. It should work.
The fastest way to copy excel tables as they are, in Thunderbird is to first copy the table to Word, and then recopy and paste within html email.
Colors, lines, format are kept as they are...
Another workaround you can do entirely within Excel is copy the cells for your table, pasted as a picture in Excel and then copy/cut the picture from Excel and then paste to Thunderbird. You lose the ability to edit in place in Thunderbird, and increase the size of the email but you keep all the formatting from Excel.
So far,the best solution is paste the table into Word and then copy from there.
This is a bug from 2003 Reference Link,but didn‘t fix it.
Paste the table as it is in mail from excel, then go to
Format --> Table --> Table Properties
In Borders & Spacing, keep the Borders as- 1 or 2 pixels.
It is working 100%
This is a bug in thunderbird. I overcome this by using LibreOffice (or open office) spreadsheet. Formatting is not lost when we copy from Libreoffice Calc. Thunderbird development is a bit lousy :-). Keeping this bug open for long time.
try to use "Text To column" function under the "DATA" TAB
it will make the column suitable to be pasted as a text

Fonts look different when inserting Excel table in a Word document

I am trying to use a VBA macro (for Office 2003) to do the following:
In Excel, the user will select a range of cells
In Word the user will call the macro (via a button or shortcut) to insert the selected Excel range as an embedded object
The code is not the problem so far, my problems are:
Given that the user is working in a Word document, most likely will use the same fonts in Excel
When Excel range was inserted in Word and they both use the same font names and sizes, they look different inside Word ( fonts look as if they stretched a bit)
Styling Cell borders in Excel is not like styling cell borders in Word
I do appreciate any advice on this regards
When you paste as an Excel Worksheet Object, what Word is actually displaying is an image created by Excel. Notice that you can't select any text, for example. Word appears to be distorting the image ever so slightly, so that the fonts won't line up.
Edit: I can't speak for Office 2003, but Office 2007 defaults to the HTML format using PasteExcelTable. The exact macro statement is
Selection.PasteExcelTable False, False, False
This will give formatting that is compatible with Word, but unfortunately the data is not live and won't get updated as the spreadsheet is changed. If your requirements don't include live update, try this method.
Is it possible to have the macro creating a table out of the cells (as normally happens when you manually copy them), rather than inserting an Excel Object.
The best visual results results can be achieved by using Selection.CopyPicture(Appearance, Format); however, you will not be able to edit the data inside Word as you will only get a picture.

Pasting the same text copied from different sources behaves differently in Excel

Now this is a weird one
We have a project where we are reading some data from an Excel spreadsheet. Obviously this data has to be in a certain format. Some of the fields consists of numbers, but should be treated as text.
To stop Excel from being "smart" and change the cell types, I have set the format in the respective cells to 'text'.
Now here is the problem: some of the numbers we're pasting have spacing between the digits. When we remove the white spaces, Excel change the cell format to 'standard' and turn the text into the 2.42805E+11 format.
BUT: this only happens when the text is copied from some sources. If a paste a number copied from a textbox, everything turn out fine when we edit the spaces. If we copy the exact same number from a web page, Excel change cell format.
I thought copy-paste would be copy-paste, but obviously some formating or something gets along on the ride.
Does anyone know what causes this, or know have to get Excel to stop being "smart" with the formating?
EDIT: I found a somewhat peculiar solution to this. I recorded a macro that uses the 'Paste Special' function with text as parameter, and overrided ctrl-v with it (in that particular spreadsheet). Works like a charm! Feels a bit "hacky", though. Can anyone think of a scenario where this will backfire?
Try using the Edit Paste Special command, it will give you some controls to choose what to do with the data.
For a taste of the complexity of what is really going on underneath, look in MSDN about Clipboard Formats. In short, it isn't all Excel's fault...
A common user trick copying data out of excel is to paste it into Notepad and cut it back to the clipboard, which flattens all the formatting down to plain text. It won't help you for pasting data into Excel, however.
Copy-paste in windows retains formatting. One way to get rid of the formatting is to paste the text into e.g. notepad first, then select and copy it again. This loses any copied formatting.

Resources