Create tag Clouds from twitter in Excel

The tagCloud class
Today’s post will demonstrate how to generate tagClouds from various sources in Excel. As an example we will use some tweets retrieved by the rest- Excel library

A ‘Mitt Romney’ type query generates this tagCloud


The VBA code to create this uses classes from the ramblings sitecTagCloud ,  cDataSet. and heatMap.


A single Cell
The example above reports on a  complete worksheet column. Here’s how to do a single cell, and is in the spirit of many posts  such as rest-excel-json-excel in one line of code

Newt Gingrich’s wikipedia entry gives this


with this one liner.

Multiple tags
Finally, here’s how to consolidate multiple tags from multiple workbooks, this time comparing Obama and Romney sentiment on tax and charity.


and here is the code,

You can read more about this and download these and other examples at the ramblings site. Although the examples here are based on tweet data, you can of course use any Excel data.

About brucemcp 223 Articles
I am a Google Developer Expert and decided to investigate Google Apps Script in my spare time. The more I investigated the more content I created so this site is extremely rich. Now, in 2019, a lot of things have disappeared or don’t work anymore due to Google having retired some stuff. I am however leaving things as is and where I came across some deprecated stuff, I have indicated it. I decided to write a book about it and to also create videos to teach developers who want to learn Google Apps Script. If you find the material contained in this site useful, you can support me by buying my books and or videos.

Be the first to comment

Leave a Reply

Your email address will not be published.


one × 2 =