Metafile eXpert. A free utility to import Excel tables inside InDesign
On my consulting business, I do a lot of data sharing between Excel and InDesign.
I know that InDesign tables have very powerful formatting options, but my reports usually contain dozens of interconnected tables that have to be created in Excel (because they contain financial calculations). Excel does provide with enough formatting options to create great looking tables that integrate nicely with the layout of my reports, while InDesign, of course, lacks any calculation power.
Download now Metafile eXpert, or continue reading to know the whole story about effectively working with Excel tables in InDesign.
Placing Excel tables in InDesign. The traditional way
InDesign provides two "modes" of handling the clipboard as shown below. The options are available (in Windows systems) in Edit > Preferences > Clipboard handling …
Paste Text Only
You really should not copy and paste tables created in Excel to InDesign using the Text Only mode. If you don’t follow my advice and do it, the table is converted to text, with each row in a line, and columns separated by tabs. This is hardly useful.
It is necessary to completely reformat the table in InDesign, and merged cells usually create problems. But the worse news is, whenever the original data changes (and believe me, it will), you have to copy, paste and reformat it again from scratch. Definitely a no-no.
Paste All Information
Ok, so what happens if you try the first option, ‘Paste All information’. That looks more promising.
In this case, what InDesign does is to try and convert the Excel table into an InDesign table, thriving to retain all formatting information it can.
As seen above, if you take the precaution of hiding gridlines in Excel, the result is no so bad.
[BTW, I always hide the gridlines anyway, because I find they are distracting when working with Excel, so it is not a big deal for me.]
InDesign really does a great job of converting the Excel table into a InDesign table. There are still a few glitches, like the width and height of cells not being maintained, the vertical alignment being odd and, again, problems with merged cells. So, even if the result is fairly good, you will have to manually tweak and adjust the conversion. And this means that you will have to reformat tables again whenever the underlying information changes. Not really a viable solution.
Using the metafile clipboard format
The problem lies in that, even though Excel pastes to the clipboard the data in mutiple formats, InDesign only uses two of these formats: The internal Excel clipboard format to create an InDesign table, or the text only format, to create a tab delimited text object.
But there is a third way which involves using the metafile format. What is a metafile? Is a vector file format that has been used in Windows, at least since Windows 3.0. Being a vector format means that it has maximum quality. And it provides a really good rendition of the original formatting of the spreadsheet because it is the format that is used by Excel itself to print a spreadsheet on some printers.
The funny thing (so to speak) is that InDesign does understand metafiles (in fact, most applications do) but it ignores it unless it is the only available format.
Excel provides a little known trick to remove all other clipboard formats and publish only a metafile. How do you do it? To put it mildly, it is not terribly intuitive in Excel 2007. The following screen shot shows how to do it:
- Select the range you want to copy.
- Click on the little arrow below the Paste button
- Select the last option ‘As Picture’.
- A new dialog will be shown with a few options.
You will get better results selecting the ‘As shown when printed’ option. You may have noticed that Excel is not a perfect WYSIWIG ("What you see is what you get") application. Selecting this option means that Excel will effectively compose the metafile as if it were printing the selected range.
Usually, it doesn’t really matter which Appearance option you select.
The Format options are more important. As you can see, when using the ‘As printed’ option you can’t choose a Format, because Excel forces the Picture format for you (remember I told you Excel uses metafiles to print?). But in case you decide to use ‘As shown on screen’, you have to absolutely make sure that you stick to the Picture format (in case you are wondering, picture is a MS synonym for metafile).
You don’t want to use a bitmap. Believe me.
It is fairly easy to create a macro in Excel to replicate all these clicks and selections and copy the selected cells as metafile to the clipboard to paste it afterwards in InDesign. In fact that is what I did in the past, with good results.
Updating metafile tables
What happens when the table changes? Easy, for each table yo need to update, you repeat the process in Excel, then turn to InDesign, delete the old table, paste it again, and back to Excel. Easy … but tedious.
[NOTE: Of course, if you are a brave person, you can try to link the table in InDesign. I am not brave enough myself and have been avoiding using linking since the very day Microsoft invented it, but you might be different]
Introducing Metafile eXpert. A better way to handle Excel tables in InDesign
To streamline the process, a couple of years ago I created a personal quick and dirty utility to capture the metafile format posted by Excel to the clipboard (remember that Excel always publishes metafiles when copying to the clipboard) and save it to disk. Then, I’d "place" the metafile in InDesign, as I would any other external "asset".
Recently I have been investigating the clipboard in more detail for an upcoming add-in I am working with, (the name is WordClip and it is a boilerplate repository for Word). As a result I have greatly enhanced my little metafile utility and decided to release it to the world as a freeware utility. If you work with Excel tables in InDesign you absolutely must get it. And the price is quite reasonable!
You can see below a screen shot of Metafile eXpert.
What’s the deal with Metafile eXpert?
- First of all, it keeps record of your projects and the location of your "assets" folder for each.
- It "monitors" the clipboard. That means that you can copy a bunch of Excel tables without having to move back and forth between Excel, Metafile eXpert and InDesign.
- You don’t have to create a macro to replicate the "trick" I have presented above. The good old Ctrl+C key combination in Excel will get the work done.
- Placing metafiles inside InDesign means that you don’t have to delete and paste again the tables back in InDesign. When you return to your publication, InDesign detects that the metafiles have changed on disk and you can update them all with a few clicks!
- You get a full preview of the tables to ensure that they look like you want, right inside Metafile eXpert. And, by the way, Metafile eXpert, is a truly WYSIWIG application. The preview shows the metafiles exactly as they will print.
So, what are you waiting for?
Please Contact me if you find Metafile eXpert useful. And be sure to let me know your suggestions to make it even more productive.
Where are my metafiles?
Metafile eXpert saves metafiles using the Enhanced Meta Files format, with the extension EMF. When you open the Place dialog you wont see the metafiles, because Adobe has not included EMF as one of the extensions in the default "Importable files" option. Therefore you have to select the "Windows Enhanced Meta Files" in the Place dialog.
This is no good, so I send an email to Add-in-Express technical support. I recall that at some point in the past, I discovered a bug in their implementation of Office 2007 task panes in PowerPoint, so I ask them if they have checked their new advanced task panes with PowerPoint.
My products use a number of third party components. Of these, there are two that are extremely important to me: