Automating monkeywork in Excel and Word
January 6, 2009 1:15 PM
Subscribe
Automation Filter: How can I automate the insertion of data from a spreadsheet into a Word report template?
My glorious analysis job has a hell of a lot more reporting in it than I expected - way more spreadsheet-to-Word than I learned how to deal with in academia. Example: quarterly survey results that need to be reported on. One report needs responses overall and broken down by respondent category. The next wants to compare all respondents from the entire time that the reports have been going. The final set of reports compares respondents from a particular quarter across each year.
My predecessor created elaborate Excel spreadsheets to calculate mean values, etc, and then copy/pasted these hundreds of values by hand into Word. I don't even have the data for the old surveys - just the reports. So for the longitudinal reports, I have to copy the old counts, add to the new, and then recalculate the percentages.
This all strikes me as insanely primitive, and a huge waste of my time. This is what I envision: the (web-administered) survey results are given a unique ID, dated, and appended to a file of all past respondents. Once the survey is closed for the quarter, I tell the robots to hit it. They mercilessly plug new dates and updated numbers into the Word reports and save them to an appropriate folder. My sole acts: skim for errors, press send on an email, laugh diabolically at what my legion of electronic minions hath wrought.
I can think of a number of ways to do this: I'm sure there is some third-party stuff that I could buy, I could write a program to produce a LaTeX file that publishes to PDF, there's probably an official Microsoft protocol, etc. I would love to program this myself, and I would get major credit from the boss for doing it for free in this time of budget crisis. But I haven't actually DONE anything along those lines. So what I would like to know is: how would YOU do this, preferably on the cheap?
I'm familiar with Visual Basic .NET, I'm learning Python, and I'm quite comfortable in R. I'm happy to learn something new, though, especially because I have a real problem to test it on. I've got Office 2007 and Adobe Acrobat in full.
Thanks in advance, Mefites. I only hope that I might someday rock as hard as you.
posted by McBearclaw to computers & internet (8 comments total)
1 user marked this as a favorite
posted by Pants! at 1:35 PM on January 6